diff options
author | Robin Burchell <robin.burchell@viroteck.net> | 2016-12-21 22:59:54 +0100 |
---|---|---|
committer | Robin Burchell <robin.burchell@viroteck.net> | 2016-12-22 10:24:43 +0000 |
commit | 55ba2349905fc203cd34da0fec5f267ff307cf81 (patch) | |
tree | c41f4eafc5ccfb18bb584a507fff7ce3d1c24b36 /src/qmltest/quicktest.cpp | |
parent | fc9754e236b6f93d16d0b52507b0f3a71b0a84e1 (diff) |
quicktest: Don't warn if the root item has no size
It could be argued that all callers should be fixed, but this warning has
existed since 2012 and even our own tests do not all set sizes, so I think that
battle is a lost fight.
This helps make real problems with the tests more visible.
Change-Id: Ie29521695ef11943154dae40726d194dc72316c2
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/qmltest/quicktest.cpp')
-rw-r--r-- | src/qmltest/quicktest.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/qmltest/quicktest.cpp b/src/qmltest/quicktest.cpp index 70733da121..f62f66170e 100644 --- a/src/qmltest/quicktest.cpp +++ b/src/qmltest/quicktest.cpp @@ -373,9 +373,6 @@ int quick_test_main(int argc, char **argv, const char *name, const char *sourceD // and then wait for quit indication. view->setFramePosition(QPoint(50, 50)); if (view->size().isEmpty()) { // Avoid hangs with empty windows. - qWarning().nospace() - << "Test '" << QDir::toNativeSeparators(path) << "' has invalid size " - << view->size() << ", resizing."; view->resize(200, 200); } view->show(); |