diff options
author | axis <qt-info@nokia.com> | 2009-08-12 07:44:51 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-08-12 08:59:19 (GMT) |
commit | ba62482f69385ba929384e0402135891c77eddcb (patch) | |
tree | aa78cfbacaf03d59907abfd2068d42aa8ae1a9f9 /src/gui/widgets/qlineedit.cpp | |
parent | c5e1630f0ca7062dd602d7e91f47362e5506f858 (diff) | |
download | Qt-ba62482f69385ba929384e0402135891c77eddcb.zip Qt-ba62482f69385ba929384e0402135891c77eddcb.tar.gz Qt-ba62482f69385ba929384e0402135891c77eddcb.tar.bz2 |
Revert "Changed the behavior of ImCursorPosition slightly."
This reverts commit ce02d0e9e0ad8d8ac47e4f3ee95bac5cb74ed184.
This turned out not to be enough for proper selection support
together with S60 FEP. Instead we will revert the behavior and add
new API.
(cherry picked from commit 6545932efa45ea2b8fbc1459d760ec5f15c63120)
Conflicts:
doc/src/qnamespace.qdoc
src/gui/widgets/qlineedit.cpp
Diffstat (limited to 'src/gui/widgets/qlineedit.cpp')
-rw-r--r-- | src/gui/widgets/qlineedit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qlineedit.cpp b/src/gui/widgets/qlineedit.cpp index 5b04616..cd9666d 100644 --- a/src/gui/widgets/qlineedit.cpp +++ b/src/gui/widgets/qlineedit.cpp @@ -1657,7 +1657,7 @@ QVariant QLineEdit::inputMethodQuery(Qt::InputMethodQuery property) const case Qt::ImFont: return font(); case Qt::ImCursorPosition: - return QVariant(d->control->hasSelectedText() ? d->control->selectionEnd() : d->control->cursor()); + return QVariant(d->control->cursor()); case Qt::ImSurroundingText: return QVariant(text()); case Qt::ImCurrentSelection: |