aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/extras
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-07-06 19:19:55 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-07-08 10:37:37 +0000
commit397d5a3666d357a61c8f099146dc4ecc67c0cdd0 (patch)
tree2f161eb4e730e0dfbd54c27ab09fd91d697d306b /src/imports/extras
parent9ecf530c3394f1ea6327d36edd0cbcdd75fc3450 (diff)
Drawer: add missing parent checks
Just to avoid warnings in tests for now, meanwhile waiting for the new popup framework. :) Change-Id: Id05942679b61b0245fedbb7bf4a4da7868335dff Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/extras')
-rw-r--r--src/imports/extras/Drawer.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/extras/Drawer.qml b/src/imports/extras/Drawer.qml
index 1ee0cddf..504fec6b 100644
--- a/src/imports/extras/Drawer.qml
+++ b/src/imports/extras/Drawer.qml
@@ -41,8 +41,8 @@ import QtQuick.Extras 2.0
AbstractDrawer {
id: control
- width: parent.width // TODO: Window.width
- height: parent.height // TODO: Window.height
+ width: parent ? parent.width : 0 // TODO: Window.width
+ height: parent ? parent.height : 0 // TODO: Window.height
//! [background]
background: Rectangle {