Remove the remaining usages of deprecated QWindow accessors
authorShawn Rutledge <shawn.rutledge@digia.com>
Fri, 30 Nov 2012 10:44:52 +0000 (11:44 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 30 Nov 2012 14:20:52 +0000 (15:20 +0100)
Change-Id: I146e7b8e3ae0ee74f5f4e3ef85f59d50a639c0f5
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/qmltest/quicktest.cpp
tools/qmlscene/main.cpp

index 6a96395..6be10ad 100644 (file)
@@ -312,7 +312,7 @@ int quick_test_main(int argc, char **argv, const char *name, const char *sourceD
             // an asynchronous test and we need to show the window
             // and wait for the first frame to be rendered
             // and then wait for quit indication.
-            view->setFramePos(QPoint(50, 50));
+            view->setFramePosition(QPoint(50, 50));
             if (view->size().isEmpty()) { // Avoid hangs with empty windows.
                 qWarning().nospace()
                     << "Test '" << QDir::toNativeSeparators(path) << "' has invalid size "
index 32bf32e..87a577b 100644 (file)
@@ -503,7 +503,7 @@ int main(int argc, char ** argv)
                     window->setFormat(surfaceFormat);
                     window->setClearBeforeRendering(true);
                     window->setColor(QColor(Qt::transparent));
-                    window->setWindowFlags(Qt::FramelessWindowHint);
+                    window->setFlags(Qt::FramelessWindowHint);
                 }
 
                 if (options.fullscreen)