From e70ba6719087cfd59f39c8fe79bae16973c45b77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Tue, 26 Feb 2013 02:17:40 +0100 Subject: [PATCH] smallish improvements in testapplet --- .../testcomponentsapplet/contents/ui/DialogsPage.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/applets/testcomponentsapplet/contents/ui/DialogsPage.qml b/applets/testcomponentsapplet/contents/ui/DialogsPage.qml index 903346122..6d57f2662 100644 --- a/applets/testcomponentsapplet/contents/ui/DialogsPage.qml +++ b/applets/testcomponentsapplet/contents/ui/DialogsPage.qml @@ -171,13 +171,14 @@ PlasmaComponents.Page { } } PlasmaComponents.ButtonRow { + id: buttonRow spacing: _s PlasmaComponents.Button { width: _h text: "Top" onClicked: { locationDialog.location = PlasmaCore.Plasma.TopEdge; - locationDialog.visible = true + locationDialog.visible = !locationDialog.visible } } PlasmaComponents.Button { @@ -185,7 +186,7 @@ PlasmaComponents.Page { width: _h onClicked: { locationDialog.location = PlasmaCore.Plasma.BottomEdge; - locationDialog.visible = true + locationDialog.visible = !locationDialog.visible } } PlasmaComponents.Button { @@ -193,7 +194,7 @@ PlasmaComponents.Page { width: _h onClicked: { locationDialog.location = PlasmaCore.Plasma.LeftEdge; - locationDialog.visible = true + locationDialog.visible = !locationDialog.visible } } PlasmaComponents.Button { @@ -201,14 +202,13 @@ PlasmaComponents.Page { width: _h onClicked: { locationDialog.location = PlasmaCore.Plasma.RightEdge; - locationDialog.visible = true + locationDialog.visible = !locationDialog.visible } } - } PlasmaCore.Dialog { id: locationDialog - visualParent: dialogsPage + visualParent: buttonRow mainItem: DialogContent { id: dContent4 onCloseMe: locationDialog.visible = false