diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-05-01 19:25:17 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-05-02 08:49:06 +0000 |
commit | abb948f700000e762f4dde5b5988b7128107132b (patch) | |
tree | 0f4f563cb1d681416dec8c4ceece5a04edfbfbac /tests/auto/drawer/data/reposition.qml | |
parent | cea8967b138239d60084510821a69be0cc1c2c01 (diff) |
QQuickPopopPositioner: fix reposition() calls
QQuickDrawer still overrides QQuickPopupPrivate::reposition(), so it
must be called instead of calling QQuickPopupPositioner::reposition()
directly.
Task-number: QTBUG-60493
Change-Id: I45ba7364c32d89d2fd128c07f68274b962467ced
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/drawer/data/reposition.qml')
-rw-r--r-- | tests/auto/drawer/data/reposition.qml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/drawer/data/reposition.qml b/tests/auto/drawer/data/reposition.qml index 99cecd16..485da85c 100644 --- a/tests/auto/drawer/data/reposition.qml +++ b/tests/auto/drawer/data/reposition.qml @@ -52,10 +52,12 @@ import QtQuick 2.6 import QtQuick.Controls 2.0 ApplicationWindow { + id: window width: 400 height: 400 property alias drawer: drawer + property alias drawer2: drawer2 header: Item { implicitHeight: 50 } footer: Item { implicitHeight: 50 } @@ -65,4 +67,10 @@ ApplicationWindow { width: parent.width / 2 implicitHeight: parent.height } + + Drawer { + id: drawer2 + width: Math.min(window.width, window.height) / 3 * 2 + height: window.height + } } |