1
0
Fork 0

Fix yes-no panel transparency

This commit is contained in:
James Turner 2018-07-05 00:17:05 +01:00
parent b177d407f8
commit 916f2d7d76
4 changed files with 31 additions and 36 deletions

View file

@ -43,15 +43,12 @@ Item {
PropertyChanges { PropertyChanges {
target: button target: button
text: "Install" text: qsTr("Install")
hoverText: "" hoverText: ""
}
PropertyChanges {
target: sizeText
visible: true visible: true
} }
PropertyChanges { target: sizeText; visible: true }
PropertyChanges { target: confirmUninstallPanel; visible: false } PropertyChanges { target: confirmUninstallPanel; visible: false }
}, },
@ -60,15 +57,12 @@ Item {
PropertyChanges { PropertyChanges {
target: button target: button
text: "Uninstall" text: qsTr("Uninstall")
hoverText: "" hoverText: ""
}
PropertyChanges {
target: sizeText
visible: true visible: true
} }
PropertyChanges { target: sizeText; visible: true }
PropertyChanges { target: confirmUninstallPanel; visible: false } PropertyChanges { target: confirmUninstallPanel; visible: false }
}, },
@ -77,15 +71,12 @@ Item {
PropertyChanges { PropertyChanges {
target: button target: button
text: "Update" text: qsTr("Update")
hoverText: "" hoverText: ""
}
PropertyChanges {
target: sizeText
visible: true visible: true
} }
PropertyChanges { target: sizeText; visible: true }
PropertyChanges { target: confirmUninstallPanel; visible: false } PropertyChanges { target: confirmUninstallPanel; visible: false }
}, },
@ -99,8 +90,9 @@ Item {
PropertyChanges { PropertyChanges {
target: button target: button
text: "Queued" text: qsTr("Queued")
hoverText: "Cancel" hoverText: qsTr("Cancel")
visible: true
} }
PropertyChanges { target: confirmUninstallPanel; visible: false } PropertyChanges { target: confirmUninstallPanel; visible: false }
@ -108,32 +100,25 @@ Item {
State { State {
name: "downloading" name: "downloading"
PropertyChanges { PropertyChanges { target: progressFrame; visible: true }
target: progressFrame PropertyChanges { target: statusText; visible: true }
visible: true PropertyChanges { target: sizeText; visible: false }
} PropertyChanges { target: confirmUninstallPanel; visible: false }
PropertyChanges {
target: statusText
visible: true
}
PropertyChanges {
target: sizeText
visible: false
}
PropertyChanges { PropertyChanges {
target: button target: button
text: "Downloading" text: qsTr("Downloading")
hoverText: "Cancel" hoverText: qsTr("Cancel")
visible: true
} }
PropertyChanges { target: confirmUninstallPanel; visible: false }
}, },
State { State {
name: "confirm-uninstall" name: "confirm-uninstall"
PropertyChanges { target: button; visible: false }
PropertyChanges { target: progressFrame; visible: false }
PropertyChanges { target: statusText; visible: false }
PropertyChanges { target: sizeText; visible: false }
PropertyChanges { target: confirmUninstallPanel; visible: true } PropertyChanges { target: confirmUninstallPanel; visible: true }
} }
] ]

View file

@ -111,6 +111,11 @@ Item {
onRejected: { onRejected: {
confirmDeleteHangar.visible = false confirmDeleteHangar.visible = false
} }
Rectangle {
anchors.fill: parent
z: -1
}
} }
} }

View file

@ -105,6 +105,11 @@ Item {
onRejected: { onRejected: {
confirmDeletePath.visible = false confirmDeletePath.visible = false
} }
Rectangle {
anchors.fill: parent
z: -1
}
} }
} }
} }

View file

@ -1,7 +1,7 @@
import QtQuick 2.0 import QtQuick 2.0
import "." import "."
Rectangle { Item {
property alias promptText:prompt.text property alias promptText:prompt.text
property alias yesText: yesButton.text property alias yesText: yesButton.text
property alias noText: noButton.text property alias noText: noButton.text