test property binding to plasmoid.backgroundHints

This commit is contained in:
Marco Martin 2013-02-13 12:56:12 +01:00
parent 51147c9e1a
commit af49193eb3

View File

@ -36,6 +36,7 @@ Rectangle {
} }
PlasmaComponents.Button { PlasmaComponents.Button {
text: "Background" text: "Background"
checked: plasmoid.backgroundHints == 1
onClicked: { onClicked: {
print("Background hints: " + plasmoid.backgroundHints) print("Background hints: " + plasmoid.backgroundHints)
if (plasmoid.backgroundHints == 0) { if (plasmoid.backgroundHints == 0) {