summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qdatetimeedit.cpp
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-08-13 07:37:04 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-08-13 07:40:02 (GMT)
commit82d0395ad1ef78eee67ebfe74e8976e620f82356 (patch)
tree3b0099618fd42448cd1517228ee099cae5c65e4a /src/gui/widgets/qdatetimeedit.cpp
parentde088b5a7f7b57e568399334667b14bfc9e7b893 (diff)
downloadQt-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
Diffstat (limited to 'src/gui/widgets/qdatetimeedit.cpp')
-rw-r--r--src/gui/widgets/qdatetimeedit.cpp5
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;