researching: tried to close drawer easily
This commit is contained in:
parent
d4d6fbab88
commit
893ec2d61c
1 changed files with 13 additions and 0 deletions
|
@ -2,6 +2,7 @@ import QtQuick
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
|
|
||||||
Drawer {
|
Drawer {
|
||||||
|
id: drawer
|
||||||
property bool needCloseButton: true
|
property bool needCloseButton: true
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
|
@ -66,4 +67,16 @@ Drawer {
|
||||||
PageController.updateNavigationBarColor(initialPageNavigationBarColor)
|
PageController.updateNavigationBarColor(initialPageNavigationBarColor)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
id: mouseArea
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
onCanceled: {
|
||||||
|
Drag.cancel()
|
||||||
|
drawer.close()
|
||||||
|
}
|
||||||
|
|
||||||
|
preventStealing: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue