aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-06-10 12:59:28 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-06-10 16:03:01 +0000
commitb6e62658322fe2d23b5df9376484c3ad259d2bc6 (patch)
treed8a6f87890b659c22dbb77176cecfd9351283fca /src/quicktemplates2
parent8fd8024d794a18aa3cab35ea9fcebd287d238e78 (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.cpp8
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