From 55ba2349905fc203cd34da0fec5f267ff307cf81 Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Wed, 21 Dec 2016 22:59:54 +0100 Subject: 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 Reviewed-by: Friedemann Kleint --- src/qmltest/quicktest.cpp | 3 --- 1 file changed, 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(); -- cgit v1.2.3