smallish improvements in testapplet

This commit is contained in:
Sebastian Kügler 2013-02-26 02:17:40 +01:00
parent 9b4db5a7b4
commit c10b33a0a0

View File

@ -171,13 +171,14 @@ PlasmaComponents.Page {
} }
} }
PlasmaComponents.ButtonRow { PlasmaComponents.ButtonRow {
id: buttonRow
spacing: _s spacing: _s
PlasmaComponents.Button { PlasmaComponents.Button {
width: _h width: _h
text: "Top" text: "Top"
onClicked: { onClicked: {
locationDialog.location = PlasmaCore.Plasma.TopEdge; locationDialog.location = PlasmaCore.Plasma.TopEdge;
locationDialog.visible = true locationDialog.visible = !locationDialog.visible
} }
} }
PlasmaComponents.Button { PlasmaComponents.Button {
@ -185,7 +186,7 @@ PlasmaComponents.Page {
width: _h width: _h
onClicked: { onClicked: {
locationDialog.location = PlasmaCore.Plasma.BottomEdge; locationDialog.location = PlasmaCore.Plasma.BottomEdge;
locationDialog.visible = true locationDialog.visible = !locationDialog.visible
} }
} }
PlasmaComponents.Button { PlasmaComponents.Button {
@ -193,7 +194,7 @@ PlasmaComponents.Page {
width: _h width: _h
onClicked: { onClicked: {
locationDialog.location = PlasmaCore.Plasma.LeftEdge; locationDialog.location = PlasmaCore.Plasma.LeftEdge;
locationDialog.visible = true locationDialog.visible = !locationDialog.visible
} }
} }
PlasmaComponents.Button { PlasmaComponents.Button {
@ -201,14 +202,13 @@ PlasmaComponents.Page {
width: _h width: _h
onClicked: { onClicked: {
locationDialog.location = PlasmaCore.Plasma.RightEdge; locationDialog.location = PlasmaCore.Plasma.RightEdge;
locationDialog.visible = true locationDialog.visible = !locationDialog.visible
} }
} }
} }
PlasmaCore.Dialog { PlasmaCore.Dialog {
id: locationDialog id: locationDialog
visualParent: dialogsPage visualParent: buttonRow
mainItem: DialogContent { mainItem: DialogContent {
id: dContent4 id: dContent4
onCloseMe: locationDialog.visible = false onCloseMe: locationDialog.visible = false