From 7916c9d766de138f028c024ed2000d81fb869c7b Mon Sep 17 00:00:00 2001 From: Antonis Tsiapaliokas Date: Tue, 27 May 2014 17:10:04 +0300 Subject: [PATCH] Fix the PlasmaComponents.Sheet *location property is now using the PlasmaCore.Types *DialogStatus => PlasmaCore.DialogStatus *windowFlags property => flags property --- .../plasmacomponents/qml/Sheet.qml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/declarativeimports/plasmacomponents/qml/Sheet.qml b/src/declarativeimports/plasmacomponents/qml/Sheet.qml index f7984ae36..a3bb9c0d4 100644 --- a/src/declarativeimports/plasmacomponents/qml/Sheet.qml +++ b/src/declarativeimports/plasmacomponents/qml/Sheet.qml @@ -128,10 +128,6 @@ Item { */ function open() { - var pos = dialog.popupPosition(null, Qt.AlignCenter) - dialog.x = pos.x - dialog.y = pos.y - dialog.visible = true dialog.requestActivate() } @@ -174,8 +170,8 @@ Item { PlasmaCore.Dialog { id: dialog - windowFlags: Qt.Dialog - location: 4 //FIXME: replace with BottomEdge when we have an enum reachable from everywhere in core + flags: Qt.Dialog + location: PlasmaCore.Types.BottomEdge //onFaderClicked: root.clickedOutside() @@ -185,9 +181,9 @@ Item { visible: false onVisibleChanged: { if (visible) { - status = DialogStatus.Open + status = PlasmaComponents.DialogStatus.Open } else { - status = DialogStatus.Closed + status = PlasmaComponents.DialogStatus.Closed } }