diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2012-10-22 16:59:25 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-29 16:07:44 +0100 |
commit | 55f6a109e99ea2eb3359fa941a1826d4b4e11bf8 (patch) | |
tree | 35517eeb69916fed3e8e803cf4bd190125f538b6 /tests/auto/quick/qquicktextedit | |
parent | 367cf77cd64f1b72496cde5484554ff7a8134f1d (diff) |
Renamed QQuickItem::pos property to position
Abbreviated property names are less descriptive so we don't have
many of them. Might as well be consistent. QWindow::pos was already
renamed.
Change-Id: Ib52673e68e7dc902b2f8942dba6b899074b2538b
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'tests/auto/quick/qquicktextedit')
-rw-r--r-- | tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp b/tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp index 3966fff5ec..ea2ad71bfc 100644 --- a/tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp +++ b/tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp @@ -3226,7 +3226,7 @@ void tst_qquicktextedit::preeditCursorRectangle() QCoreApplication::sendEvent(edit, &query); currentRect = query.value(Qt::ImCursorRectangle).toRectF(); QCOMPARE(edit->cursorRectangle(), currentRect); - QCOMPARE(cursor->pos(), currentRect.topLeft()); + QCOMPARE(cursor->position(), currentRect.topLeft()); QCOMPARE(currentRect, previousRect); // Verify that the micro focus rect moves to the left as the cursor position @@ -3240,7 +3240,7 @@ void tst_qquicktextedit::preeditCursorRectangle() QCoreApplication::sendEvent(edit, &query); currentRect = query.value(Qt::ImCursorRectangle).toRectF(); QCOMPARE(edit->cursorRectangle(), currentRect); - QCOMPARE(cursor->pos(), currentRect.topLeft()); + QCOMPARE(cursor->position(), currentRect.topLeft()); QVERIFY(previousRect.left() < currentRect.left()); QCOMPARE(editSpy.count(), 1); editSpy.clear(); QCOMPARE(panelSpy.count(), 1); panelSpy.clear(); @@ -3257,7 +3257,7 @@ void tst_qquicktextedit::preeditCursorRectangle() QCoreApplication::sendEvent(edit, &query); currentRect = query.value(Qt::ImCursorRectangle).toRectF(); QCOMPARE(edit->cursorRectangle(), currentRect); - QCOMPARE(cursor->pos(), currentRect.topLeft()); + QCOMPARE(cursor->position(), currentRect.topLeft()); QCOMPARE(editSpy.count(), 1); QCOMPARE(panelSpy.count(), 1); @@ -3270,7 +3270,7 @@ void tst_qquicktextedit::preeditCursorRectangle() QCoreApplication::sendEvent(edit, &query); currentRect = query.value(Qt::ImCursorRectangle).toRectF(); QCOMPARE(edit->cursorRectangle(), currentRect); - QCOMPARE(cursor->pos(), currentRect.topLeft()); + QCOMPARE(cursor->position(), currentRect.topLeft()); QCOMPARE(currentRect, previousRect); QCOMPARE(editSpy.count(), 1); QCOMPARE(panelSpy.count(), 1); |