diff options
author | Jiang Jiang <jiang.jiang@nokia.com> | 2011-05-11 12:13:01 +0200 |
---|---|---|
committer | Jiang Jiang <jiang.jiang@nokia.com> | 2011-05-11 15:28:09 +0200 |
commit | 16628b76c0d24927cb6160447a1439d40a4f0fea (patch) | |
tree | 1cb8282fbce932e8031cb28c960922d7820aa2f1 /tests/auto/qcomplextext | |
parent | 3032ba0f8eae871db2f36443f26a7977b5261740 (diff) |
Move QTextCursor::MoveStyle to Qt namespace
We cannot use QTextCursor::MoveStyle enums in QTextLine because
QTextCursor is not a QObject, while referring to that enum in
Q_PROPERTY requires it to be. That's why we need to move the
enums in Qt namespace.
Reviewed-by: David Boddie
(cherry picked from commit 5eba82b752e85a5d6cb3a893214ed2646d75f362)
Diffstat (limited to 'tests/auto/qcomplextext')
-rw-r--r-- | tests/auto/qcomplextext/tst_qcomplextext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qcomplextext/tst_qcomplextext.cpp b/tests/auto/qcomplextext/tst_qcomplextext.cpp index 58b31b4aa4..ae63bacc80 100644 --- a/tests/auto/qcomplextext/tst_qcomplextext.cpp +++ b/tests/auto/qcomplextext/tst_qcomplextext.cpp @@ -214,7 +214,7 @@ void tst_QComplexText::bidiCursorMovement() QTextOption option = layout.textOption(); option.setTextDirection(basicDir == QChar::DirL ? Qt::LeftToRight : Qt::RightToLeft); layout.setTextOption(option); - layout.setCursorMoveStyle(QTextCursor::Visual); + layout.setCursorMoveStyle(Qt::VisualMoveStyle); bool moved; int oldPos, newPos = 0; qreal x, newX; |