From e35c6a788a887d7a85a836041e7d8e9a5ee48c46 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Mon, 22 Oct 2012 17:09:06 +0200 Subject: Renamed QWindow::pos property to position MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Abbreviated properties are to be avoided, and this is a new class so we have a good opportunity to avoid it before the release. Related to qtbase change I19c00b54b1d2712f9418e8bcf56e35a8008b89ef Change-Id: Ibd5cd10814c8cbd2b1f6e49b70782c7768d2366d Reviewed-by: Samuel Rødal --- tests/auto/quick/qquickwindow/tst_qquickwindow.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'tests/auto/quick/qquickwindow/tst_qquickwindow.cpp') diff --git a/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp b/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp index c108ac4562..5cede36f7f 100644 --- a/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp +++ b/tests/auto/quick/qquickwindow/tst_qquickwindow.cpp @@ -339,7 +339,7 @@ void tst_qquickwindow::touchEvent_basic() QScopedPointer cleanup(window); window->resize(250, 250); - window->setPos(100, 100); + window->setPosition(100, 100); window->show(); QVERIFY(QTest::qWaitForWindowExposed(window)); @@ -367,7 +367,7 @@ void tst_qquickwindow::touchEvent_basic() QVERIFY(middleItem->lastEvent.touchPoints.isEmpty()); QVERIFY(bottomItem->lastEvent.touchPoints.isEmpty()); - // At one point this was failing with kwin (KDE window manager) because window->setPos(100, 100) + // At one point this was failing with kwin (KDE window manager) because window->setPosition(100, 100) // would put the decorated window at that position rather than the window itself. COMPARE_TOUCH_DATA(topItem->lastEvent, makeTouchData(QEvent::TouchBegin, window, Qt::TouchPointPressed, makeTouchPoint(topItem, pos))); topItem->reset(); @@ -468,7 +468,7 @@ void tst_qquickwindow::touchEvent_propagation() QScopedPointer cleanup(window); window->resize(250, 250); - window->setPos(100, 100); + window->setPosition(100, 100); window->show(); QVERIFY(QTest::qWaitForWindowExposed(window)); @@ -601,7 +601,7 @@ void tst_qquickwindow::touchEvent_cancel() QScopedPointer cleanup(window); window->resize(250, 250); - window->setPos(100, 100); + window->setPosition(100, 100); window->show(); QVERIFY(QTest::qWaitForWindowExposed(window)); @@ -634,7 +634,7 @@ void tst_qquickwindow::touchEvent_reentrant() QScopedPointer cleanup(window); window->resize(250, 250); - window->setPos(100, 100); + window->setPosition(100, 100); window->show(); QVERIFY(QTest::qWaitForWindowExposed(window)); @@ -671,7 +671,7 @@ void tst_qquickwindow::touchEvent_velocity() QQuickWindow *window = new QQuickWindow; QScopedPointer cleanup(window); window->resize(250, 250); - window->setPos(100, 100); + window->setPosition(100, 100); window->show(); QVERIFY(QTest::qWaitForWindowExposed(window)); QTest::qWait(10); @@ -727,7 +727,7 @@ void tst_qquickwindow::mouseFromTouch_basic() QQuickWindow *window = new QQuickWindow; QScopedPointer cleanup(window); window->resize(250, 250); - window->setPos(100, 100); + window->setPosition(100, 100); window->show(); QVERIFY(QTest::qWaitForWindowExposed(window)); QTest::qWait(10); @@ -806,7 +806,7 @@ void tst_qquickwindow::mouseFiltering() QQuickWindow *window = new QQuickWindow; QScopedPointer cleanup(window); window->resize(250, 250); - window->setPos(100, 100); + window->setPosition(100, 100); window->show(); QVERIFY(QTest::qWaitForWindowExposed(window)); @@ -862,7 +862,7 @@ void tst_qquickwindow::clearColor() QQuickWindow *window = new QQuickWindow; QScopedPointer cleanup(window); window->resize(250, 250); - window->setPos(100, 100); + window->setPosition(100, 100); window->setColor(Qt::blue); window->show(); QVERIFY(QTest::qWaitForWindowExposed(window)); @@ -894,7 +894,7 @@ void tst_qquickwindow::multipleWindows() QQuickWindow *c = new QQuickWindow(); c->setColor(Qt::GlobalColor(Qt::red + i)); c->resize(300, 200); - c->setPos(100 + i * 30, 100 + i * 20); + c->setPosition(100 + i * 30, 100 + i * 20); c->show(); windows << c; cleanup[i].reset(c); @@ -904,7 +904,7 @@ void tst_qquickwindow::multipleWindows() // move them for (int i=0; isetPos(100 + i * 30, 100 + i * 20 + 100); + c->setPosition(100 + i * 30, 100 + i * 20 + 100); } // resize them -- cgit v1.2.3