summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-08-26 04:32:25 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-08-26 04:56:03 (GMT)
commitc3a8485e91cc86e9e886712acb1b9a70d96382e9 (patch)
tree2b65819f42114a97fbef7dd398f6f06672cb9733
parent1470504e15662acf37bacc58359527f88efc43ab (diff)
downloadQt-c3a8485e91cc86e9e886712acb1b9a70d96382e9.zip
Qt-c3a8485e91cc86e9e886712acb1b9a70d96382e9.tar.gz
Qt-c3a8485e91cc86e9e886712acb1b9a70d96382e9.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
-rw-r--r--src/gui/widgets/qlineedit.cpp4
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())