diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2009-08-19 07:06:33 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2009-08-19 07:06:33 (GMT) |
commit | 0325e1af2b53f62db6da27ae43ea62837e36c5ae (patch) | |
tree | 1536bfcfc8ac45cfb8ff34e916df1a7b30526207 /src/gui/widgets/qlineedit.cpp | |
parent | 5bc376247a07a79be4a04bf33b44d4fd85a6ae97 (diff) | |
download | Qt-0325e1af2b53f62db6da27ae43ea62837e36c5ae.zip Qt-0325e1af2b53f62db6da27ae43ea62837e36c5ae.tar.gz Qt-0325e1af2b53f62db6da27ae43ea62837e36c5ae.tar.bz2 |
Rectify copy'n'paste error from the QLineControl refactoring.
Some of the ifdef blocks weren't, well, tested.
Task-number: 259582
Reviewed-by: Trust Me
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 b88cd9ae..56cc828 100644 --- a/src/gui/widgets/qlineedit.cpp +++ b/src/gui/widgets/qlineedit.cpp @@ -1388,6 +1388,7 @@ bool QLineEdit::event(QEvent * e) if (QApplication::keypadNavigationEnabled()) { if (e->type() == QEvent::EnterEditFocus) { end(false); + d->setCursorVisible(true); int cft = QApplication::cursorFlashTime(); d->control->setCursorBlinkPeriod(cft/2); } else if (e->type() == QEvent::LeaveEditFocus) { @@ -1396,7 +1397,6 @@ bool QLineEdit::event(QEvent * e) if (d->control->hasAcceptableInput() || d->control->fixup()) emit editingFinished(); } - return true; } #endif return QWidget::event(e); |