diff options
| author | Peter Penz <[email protected]> | 2009-12-06 13:05:56 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-12-06 13:05:56 +0000 |
| commit | 65d3008d51a83bac99435a486f5e8c5cdb7e92c1 (patch) | |
| tree | c62d8c9ac67a9f04681dc120c444ae2cb42f9f72 /src/dolphinviewautoscroller.h | |
| parent | 5f332cd8dd785714600ac8231dce8b2ee6e97994 (diff) | |
Respect drag time delay from application before starting the automatic scrolling. Thanks to Christoph Feck for the initial patch!
CCMAIL: [email protected]
BUG: 205664
CCBUG: 212989
svn path=/trunk/KDE/kdebase/apps/; revision=1059377
Diffstat (limited to 'src/dolphinviewautoscroller.h')
| -rw-r--r-- | src/dolphinviewautoscroller.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dolphinviewautoscroller.h b/src/dolphinviewautoscroller.h index a858d27cb..9fd35d494 100644 --- a/src/dolphinviewautoscroller.h +++ b/src/dolphinviewautoscroller.h @@ -20,6 +20,7 @@ #ifndef DOLPHINVIEWAUTOSCROLLER_H #define DOLPHINVIEWAUTOSCROLLER_H +#include <QTime> #include <QObject> class QAbstractItemView; @@ -67,10 +68,12 @@ private: private: bool m_rubberBandSelection; bool m_keyPressed; + bool m_initializedTimestamp; int m_horizontalScrollInc; int m_verticalScrollInc; QAbstractItemView* m_itemView; QTimer* m_timer; + QTime m_timestamp; }; #endif |
