diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-06-10 12:59:28 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-06-10 16:03:01 +0000 |
commit | b6e62658322fe2d23b5df9376484c3ad259d2bc6 (patch) | |
tree | d8a6f87890b659c22dbb77176cecfd9351283fca /src/quicktemplates2 | |
parent | 8fd8024d794a18aa3cab35ea9fcebd287d238e78 (diff) |
Drawer: avoid millions of warnings in auto tests and benchmarks
tst_sanity, tst_creationtime, tst_objectcount are the problematic tests,
because they don't create a window.
Change-Id: Ia0131477f08a164c015ee7c27110950ec287e264
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2')
-rw-r--r-- | src/quicktemplates2/qquickdrawer.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/quicktemplates2/qquickdrawer.cpp b/src/quicktemplates2/qquickdrawer.cpp index e5d05c9c..e5f356e4 100644 --- a/src/quicktemplates2/qquickdrawer.cpp +++ b/src/quicktemplates2/qquickdrawer.cpp @@ -521,9 +521,11 @@ void QQuickDrawer::componentComplete() { Q_D(QQuickDrawer); QQuickPopup::componentComplete(); - bool notify = false; - d->prepareEnterTransition(notify); - d->reposition(); + if (d->window) { + bool notify = false; + d->prepareEnterTransition(notify); + d->reposition(); + } } QT_END_NAMESPACE |