@@ -24,9 +24,11 @@ import "../Components"
27+ // to be set from outside
27 property bool interactive: true
28 property bool interactive: true
28 property bool dropShadow: true
29 property bool dropShadow: true
29 property real maximizedAppTopMargin
30 property real maximizedAppTopMargin
31+ property alias swipeToCloseEnabled: dragArea.enabled
31 readonly property bool isFullscreen: surface !== null && surfaceContainer.surface.anchors.topMargin == 0
33 readonly property bool isFullscreen: surface !== null && surfaceContainer.surface.anchors.topMargin == 0
@@ -71,6 +73,11 @@ Item {
71 property: "enabled"
73 property: "enabled"
72 value: root.interactive
74 value: root.interactive
79+ value: root.interactive
75 Timer { //FIXME - need to delay removing splash screen to allow surface resize to complete
82 Timer { //FIXME - need to delay removing splash screen to allow surface resize to complete
76 id: surfaceRevealDelay
83 id: surfaceRevealDelay
@@ -136,7 +143,6 @@ Item {
136 DraggingArea {
143 DraggingArea {
137 id: dragArea
144 id: dragArea
138 anchors.fill: parent
145 anchors.fill: parent
139− enabled: !root.interactive
141 property bool moving: false
147 property bool moving: false
142 property real distance: 0
148 property real distance: 0