Add option to update firmware for TellStick
This commit is contained in:
parent
bf4ad2a1a7
commit
0ebdba4dbc
1 changed files with 35 additions and 0 deletions
|
@ -2,12 +2,38 @@ import QtQuick 1.1
|
||||||
import QtDesktop 0.1
|
import QtDesktop 0.1
|
||||||
|
|
||||||
BorderImage {
|
BorderImage {
|
||||||
|
id: view
|
||||||
source: "row_bg.png"
|
source: "row_bg.png"
|
||||||
border.left: 5; border.top: 5
|
border.left: 5; border.top: 5
|
||||||
border.right: 5; border.bottom: 5
|
border.right: 5; border.bottom: 5
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: content.height + content.anchors.margins*2
|
height: content.height + content.anchors.margins*2
|
||||||
|
|
||||||
|
property variant c: controller //Needed for upgradeDialogComponent
|
||||||
|
|
||||||
|
Component {
|
||||||
|
id: upgradeDialogComponent
|
||||||
|
ControllerUpgradeDialog {
|
||||||
|
controller: c
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loader {
|
||||||
|
id: upgradeDialog
|
||||||
|
visible: false
|
||||||
|
onVisibleChanged: {
|
||||||
|
if (visible) {
|
||||||
|
upgradeDialog.sourceComponent = upgradeDialogComponent
|
||||||
|
upgradeDialog.item.visible = true
|
||||||
|
} else {
|
||||||
|
upgradeDialog.sourceComponent = undefined
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Connections {
|
||||||
|
target: upgradeDialog.item
|
||||||
|
onVisibleChanged: upgradeDialog.visible = upgradeDialog.item.visible
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: content
|
id: content
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
@ -50,6 +76,15 @@ BorderImage {
|
||||||
onClicked: controller.tryRemove();
|
onClicked: controller.tryRemove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Image {
|
||||||
|
source: "btn_action_remove.png"
|
||||||
|
rotation: 90
|
||||||
|
visible: controller.upgradable
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
onClicked: upgradeDialog.visible = true
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue