From b6f5f235f0ab3c84e960f2cf46e542592195abbf Mon Sep 17 00:00:00 2001 From: Sebastian Kügler Date: Fri, 4 Dec 2015 00:27:35 +0100 Subject: sync with mobilecomponents 9d8bf6d77d MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- qt-mobile/qml/mobilecomponents/OverlayDrawer.qml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'qt-mobile/qml/mobilecomponents/OverlayDrawer.qml') 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; } -- cgit v1.2.3-70-g09d2