From 18f42ab9b5e5b7bd9bd324af4c2ac449a5c2107e Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Fri, 30 Nov 2012 11:44:52 +0100 Subject: [PATCH] Remove the remaining usages of deprecated QWindow accessors MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I146e7b8e3ae0ee74f5f4e3ef85f59d50a639c0f5 Reviewed-by: Samuel Rødal --- src/qmltest/quicktest.cpp | 2 +- tools/qmlscene/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qmltest/quicktest.cpp b/src/qmltest/quicktest.cpp index 6a96395..6be10ad 100644 --- a/src/qmltest/quicktest.cpp +++ b/src/qmltest/quicktest.cpp @@ -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 " diff --git a/tools/qmlscene/main.cpp b/tools/qmlscene/main.cpp index 32bf32e..87a577b 100644 --- a/tools/qmlscene/main.cpp +++ b/tools/qmlscene/main.cpp @@ -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) -- 2.7.4