diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2009-08-13 07:37:04 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2009-08-13 07:40:02 (GMT) |
commit | 82d0395ad1ef78eee67ebfe74e8976e620f82356 (patch) | |
tree | 3b0099618fd42448cd1517228ee099cae5c65e4a | |
parent | de088b5a7f7b57e568399334667b14bfc9e7b893 (diff) | |
download | Qt-82d0395ad1ef78eee67ebfe74e8976e620f82356.zip Qt-82d0395ad1ef78eee67ebfe74e8976e620f82356.tar.gz Qt-82d0395ad1ef78eee67ebfe74e8976e620f82356.tar.bz2 |
Compile with QT_KEYPAD_NAVIGATION defined
Also, try not to regress in functionality (which the last compile fix
did just a little)
Reviewed-by: Thomas Hartmann
-rw-r--r-- | src/gui/widgets/qdatetimeedit.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/widgets/qdatetimeedit.cpp b/src/gui/widgets/qdatetimeedit.cpp index ae3af31..2900d39 100644 --- a/src/gui/widgets/qdatetimeedit.cpp +++ b/src/gui/widgets/qdatetimeedit.cpp @@ -1086,6 +1086,7 @@ void QDateTimeEdit::keyPressEvent(QKeyEvent *event) //hide cursor d->edit->d_func()->setCursorVisible(false); + d->edit->d_func()->control->setCursorBlinkPeriod(0); d->setSelected(0); } } @@ -1106,9 +1107,7 @@ void QDateTimeEdit::keyPressEvent(QKeyEvent *event) //hide cursor d->edit->d_func()->setCursorVisible(false); - if (d->edit->d_func()->cursorTimer > 0) - killTimer(d->edit->d_func()->cursorTimer); - d->edit->d_func()->cursorTimer = 0; + d->edit->d_func()->control->setCursorBlinkPeriod(0); d->setSelected(0); oldCurrent = 0; |