summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qlinecontrol.cpp
diff options
context:
space:
mode:
authorJiang Jiang <jiang.jiang@nokia.com>2011-05-11 10:13:01 (GMT)
committerJiang Jiang <jiang.jiang@nokia.com>2011-05-11 12:32:02 (GMT)
commit5eba82b752e85a5d6cb3a893214ed2646d75f362 (patch)
tree68470935e37155b5f1cef258043de8d0ee08e371 /src/gui/widgets/qlinecontrol.cpp
parent360c5f2c39a39c2a8296f21e6f5f577367610853 (diff)
downloadQt-5eba82b752e85a5d6cb3a893214ed2646d75f362.zip
Qt-5eba82b752e85a5d6cb3a893214ed2646d75f362.tar.gz
Qt-5eba82b752e85a5d6cb3a893214ed2646d75f362.tar.bz2
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
Diffstat (limited to 'src/gui/widgets/qlinecontrol.cpp')
-rw-r--r--src/gui/widgets/qlinecontrol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qlinecontrol.cpp b/src/gui/widgets/qlinecontrol.cpp
index 4fb0f0c..2a15555 100644
--- a/src/gui/widgets/qlinecontrol.cpp
+++ b/src/gui/widgets/qlinecontrol.cpp
@@ -1593,7 +1593,7 @@ void QLineControl::processKeyEvent(QKeyEvent* event)
}
bool unknown = false;
- bool visual = cursorMoveStyle() == QTextCursor::Visual;
+ bool visual = cursorMoveStyle() == Qt::VisualMoveStyle;
if (false) {
}