diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2009-08-26 04:32:25 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2009-08-26 04:32:25 (GMT) |
commit | 1be1f72b8c1aba4769b7291f77927654f8bf7bd4 (patch) | |
tree | c745d76a8c65e82c0611412e5ec1cd46c8ac426a /src | |
parent | e5db8cdccdb032d82b5562abded95d1dbd743264 (diff) | |
download | Qt-1be1f72b8c1aba4769b7291f77927654f8bf7bd4.zip Qt-1be1f72b8c1aba4769b7291f77927654f8bf7bd4.tar.gz Qt-1be1f72b8c1aba4769b7291f77927654f8bf7bd4.tar.bz2 |
Fix another minor copy'n'paste error from QLineControl refactoring
Had left the cursor flash time as half the QApplication cursor flash
time by mistake. The new function sets the whole period and not just the
time between toggling cursor visibility.
Reviewed-by: Trust Me
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/widgets/qlineedit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/qlineedit.cpp b/src/gui/widgets/qlineedit.cpp index 299ecfc..f36a995 100644 --- a/src/gui/widgets/qlineedit.cpp +++ b/src/gui/widgets/qlineedit.cpp @@ -1395,7 +1395,7 @@ bool QLineEdit::event(QEvent * e) if (e->type() == QEvent::EnterEditFocus) { end(false); d->setCursorVisible(true); - d->control->setCursorBlinkPeriod(QApplication::cursorFlashTime()/2); + d->control->setCursorBlinkPeriod(QApplication::cursorFlashTime()); } else if (e->type() == QEvent::LeaveEditFocus) { d->setCursorVisible(false); d->control->setCursorBlinkPeriod(0); @@ -1690,7 +1690,7 @@ void QLineEdit::focusInEvent(QFocusEvent *e) #ifdef QT_KEYPAD_NAVIGATION if (!QApplication::keypadNavigationEnabled() || (hasEditFocus() && e->reason() == Qt::PopupFocusReason)){ #endif - d->control->setCursorBlinkPeriod(QApplication::cursorFlashTime()/2); + d->control->setCursorBlinkPeriod(QApplication::cursorFlashTime()); QStyleOptionFrameV2 opt; initStyleOption(&opt); if((!hasSelectedText() && d->control->preeditAreaText().isEmpty()) |