QScopedPointer<QQuickWindow> cleanup(window);
window->resize(250, 250);
- window->setPos(100, 100);
+ window->setPosition(100, 100);
window->show();
QVERIFY(QTest::qWaitForWindowExposed(window));
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();
QScopedPointer<QQuickWindow> cleanup(window);
window->resize(250, 250);
- window->setPos(100, 100);
+ window->setPosition(100, 100);
window->show();
QVERIFY(QTest::qWaitForWindowExposed(window));
QScopedPointer<QQuickWindow> cleanup(window);
window->resize(250, 250);
- window->setPos(100, 100);
+ window->setPosition(100, 100);
window->show();
QVERIFY(QTest::qWaitForWindowExposed(window));
QScopedPointer<QQuickWindow> cleanup(window);
window->resize(250, 250);
- window->setPos(100, 100);
+ window->setPosition(100, 100);
window->show();
QVERIFY(QTest::qWaitForWindowExposed(window));
QQuickWindow *window = new QQuickWindow;
QScopedPointer<QQuickWindow> cleanup(window);
window->resize(250, 250);
- window->setPos(100, 100);
+ window->setPosition(100, 100);
window->show();
QVERIFY(QTest::qWaitForWindowExposed(window));
QTest::qWait(10);
QQuickWindow *window = new QQuickWindow;
QScopedPointer<QQuickWindow> cleanup(window);
window->resize(250, 250);
- window->setPos(100, 100);
+ window->setPosition(100, 100);
window->show();
QVERIFY(QTest::qWaitForWindowExposed(window));
QTest::qWait(10);
QQuickWindow *window = new QQuickWindow;
QScopedPointer<QQuickWindow> cleanup(window);
window->resize(250, 250);
- window->setPos(100, 100);
+ window->setPosition(100, 100);
window->show();
QVERIFY(QTest::qWaitForWindowExposed(window));
QQuickWindow *window = new QQuickWindow;
QScopedPointer<QQuickWindow> cleanup(window);
window->resize(250, 250);
- window->setPos(100, 100);
+ window->setPosition(100, 100);
window->setColor(Qt::blue);
window->show();
QVERIFY(QTest::qWaitForWindowExposed(window));
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);
// move them
for (int i=0; i<windows.size(); ++i) {
QQuickWindow *c = windows.at(i);
- c->setPos(100 + i * 30, 100 + i * 20 + 100);
+ c->setPosition(100 + i * 30, 100 + i * 20 + 100);
}
// resize them