aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/mobilecomponents/OverlayDrawer.qml
diff options
context:
space:
mode:
authorGravatar Sebastian Kügler <sebas@kde.org>2015-12-04 00:27:35 +0100
committerGravatar Sebastian Kügler <sebas@kde.org>2015-12-07 18:46:32 +0100
commitb6f5f235f0ab3c84e960f2cf46e542592195abbf (patch)
tree9bee0cc96f0eafb2febda9974d39279008155603 /qt-mobile/qml/mobilecomponents/OverlayDrawer.qml
parent72411eee63fba5cfba5a97e438e5c494fa928fd0 (diff)
downloadsubsurface-b6f5f235f0ab3c84e960f2cf46e542592195abbf.tar.gz
sync with mobilecomponents 9d8bf6d77d
- Fixes interactivity in context drawer. - These are mostly cleanups that have been done pre-merge of these components. This now is the state of master in plasma-mobile. - makes navigation a bit more intuitive Signed-off-by: Sebastian Kügler <sebas@kde.org>
Diffstat (limited to 'qt-mobile/qml/mobilecomponents/OverlayDrawer.qml')
-rw-r--r--qt-mobile/qml/mobilecomponents/OverlayDrawer.qml14
1 files changed, 10 insertions, 4 deletions
diff --git a/qt-mobile/qml/mobilecomponents/OverlayDrawer.qml b/qt-mobile/qml/mobilecomponents/OverlayDrawer.qml
index 5ae81929e..c6e9d4b36 100644
--- a/qt-mobile/qml/mobilecomponents/OverlayDrawer.qml
+++ b/qt-mobile/qml/mobilecomponents/OverlayDrawer.qml
@@ -28,14 +28,20 @@ Imports:
QtQuick 2.1
Description:
- Overlay Drawers are used to expose additional UI elements needed for small secondary tasks for which the main UI elements are not needed. For example in Okular Active, an Overlay Drawer is used to display thumbnails of all pages within a document along with a search field. This is used for the distinct task of navigating to another page.
+ Overlay Drawers are used to expose additional UI elements needed for
+ small secondary tasks for which the main UI elements are not needed.
+ For example in Okular Active, an Overlay Drawer is used to display
+ thumbnails of all pages within a document along with a search field.
+ This is used for the distinct task of navigating to another page.
Properties:
bool opened:
- If true the drawer is open showing the contents of the "drawer" component.
+ If true the drawer is open showing the contents of the "drawer"
+ component.
Item page:
- It's the default property. it's the main content of the drawer page, the part that is always shown
+ It's the default property. it's the main content of the drawer page,
+ the part that is always shown
Item contentItem:
It's the part that can be pulled in and out, will act as a sidebar.
@@ -218,7 +224,7 @@ AbstractDrawer {
onStateChanged: open = (state != "Closed")
property bool open: false
onOpenChanged: {
- if (drawerPage.children.length == 0) {
+ if (browserFrame.state == "Dragging" || drawerPage.children.length == 0) {
return;
}