summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qlinecontrol.cpp
diff options
context:
space:
mode:
authorGuoqing Zhang <guoqing.zhang@nokia.com>2011-03-16 11:29:20 (GMT)
committerGuoqing Zhang <guoqing.zhang@nokia.com>2011-03-16 11:29:20 (GMT)
commit39dcac49c9a20eaa9b347276d97547461c3904aa (patch)
tree8a0cc8574bed910f24438ee0fe5fb961021b3a65 /src/gui/widgets/qlinecontrol.cpp
parent82198dd1f7049cec89271b0ea82521752cc13c05 (diff)
parente318b0276c3d4a0db8660b4fa6d68f1784aee522 (diff)
downloadQt-39dcac49c9a20eaa9b347276d97547461c3904aa.zip
Qt-39dcac49c9a20eaa9b347276d97547461c3904aa.tar.gz
Qt-39dcac49c9a20eaa9b347276d97547461c3904aa.tar.bz2
Merge remote branch 'qt-master/master'
Conflicts: src/corelib/thread/qthread_unix.cpp
Diffstat (limited to 'src/gui/widgets/qlinecontrol.cpp')
-rw-r--r--src/gui/widgets/qlinecontrol.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/widgets/qlinecontrol.cpp b/src/gui/widgets/qlinecontrol.cpp
index f20e018..3eac64a 100644
--- a/src/gui/widgets/qlinecontrol.cpp
+++ b/src/gui/widgets/qlinecontrol.cpp
@@ -414,10 +414,14 @@ void QLineControl::processInputMethodEvent(QInputMethodEvent *event)
if (isGettingInput) {
// If any text is being input, remove selected text.
priorState = m_undoState;
+ if (echoMode() == QLineEdit::PasswordEchoOnEdit && !passwordEchoEditing()) {
+ updatePasswordEchoEditing(true);
+ m_selstart = 0;
+ m_selend = m_text.length();
+ }
removeSelectedText();
}
-
int c = m_cursor; // cursor position after insertion of commit string
if (event->replacementStart() <= 0)
c += event->commitString().length() - qMin(-event->replacementStart(), event->replacementLength());