on xenial help sign in
turn the MoveHandler into a QtObject
commit5e01d4800f8c59c6a0caae2d74bc757ed9ae49b1 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateThu 8 Sep 2016, 16:13 (10 years ago) parentcddd659
3 files changed+3−6
qml/Stages/DecoratedWindow.qml−1 qml/Stages/MoveHandler.qml+3−4 qml/Stages/WindowControlsOverlay.qml−1
qml/Stages/DecoratedWindow.qml−1
@@ -118,7 +118,6 @@ FocusScope {
118118
119119 MoveHandler {
120120 id: moveHandler
121− anchors.fill: decoration
122121 objectName: "moveHandler"
123122 target: root.parent
124123 buttonsWidth: decoration.buttonsWidth
qml/Stages/MoveHandler.qml+3−4
@@ -21,7 +21,7 @@ import Utils 0.1
2121import "../Components"
2222import "../Components/PanelState"
2323
24−Item {
24+QtObject {
2525 id: root
2626
2727 property Item target // appDelegate
@@ -29,7 +29,7 @@ Item {
2929 property int stageHeight
3030 property real buttonsWidth: 0
3131
32− readonly property alias dragging: priv.dragging
32+ readonly property bool dragging: priv.dragging
3333
3434 signal fakeMaximizeAnimationRequested(real amount)
3535 signal fakeMaximizeLeftAnimationRequested(real amount)
@@ -40,8 +40,7 @@ Item {
4040 signal fakeMaximizeBottomRightAnimationRequested(real amount)
4141 signal stopFakeAnimation()
4242
43− QtObject {
44− id: priv
43+ property QtObject priv: QtObject {
4544 property real distanceX
4645 property real distanceY
4746 property bool dragging
qml/Stages/WindowControlsOverlay.qml−1
@@ -159,7 +159,6 @@ Item {
159159
160160 MoveHandler {
161161 id: moveHandler
162− anchors.fill: mouseArea
163162 objectName: "moveHandler"
164163 target: root.target
165164