summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qabstractitemview.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-02-18 19:00:36 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-03-17 10:54:17 (GMT)
commit0f771c62f5253a969f5a8a81bfd9254b9bd58b8f (patch)
tree1f5dcfcfc84fd74f7017710478dadacc18de822c /src/gui/itemviews/qabstractitemview.cpp
parentec5b7ea367389234697a98d7243243ec689be724 (diff)
downloadQt-0f771c62f5253a969f5a8a81bfd9254b9bd58b8f.zip
Qt-0f771c62f5253a969f5a8a81bfd9254b9bd58b8f.tar.gz
Qt-0f771c62f5253a969f5a8a81bfd9254b9bd58b8f.tar.bz2
Port QtGui uses of QTime as a stopwatch to QTimestamp
Diffstat (limited to 'src/gui/itemviews/qabstractitemview.cpp')
-rw-r--r--src/gui/itemviews/qabstractitemview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/itemviews/qabstractitemview.cpp b/src/gui/itemviews/qabstractitemview.cpp
index dd9a7e6..34b5e13 100644
--- a/src/gui/itemviews/qabstractitemview.cpp
+++ b/src/gui/itemviews/qabstractitemview.cpp
@@ -2839,7 +2839,8 @@ void QAbstractItemView::keyboardSearch(const QString &search)
QModelIndex start = currentIndex().isValid() ? currentIndex()
: d->model->index(0, 0, d->root);
- QTime now(QTime::currentTime());
+ QTimestamp now;
+ now.start();
bool skipRow = false;
if (search.isEmpty()
|| (d->keyboardInputTime.msecsTo(now) > QApplication::keyboardInputInterval())) {