summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qgesture.h
diff options
context:
space:
mode:
authorThomas Zander <t.zander@nokia.com>2010-07-07 09:46:33 (GMT)
committerThomas Zander <t.zander@nokia.com>2010-07-08 11:17:12 (GMT)
commit8b212b5f36ef7479bb902c6f8c8c1f4335f7f39f (patch)
tree9cfe87d49f384af482469bef20fc12203289bba9 /src/gui/kernel/qgesture.h
parent062ceb0ec312e54670362c76aefdcac5353d64cd (diff)
downloadQt-8b212b5f36ef7479bb902c6f8c8c1f4335f7f39f.zip
Qt-8b212b5f36ef7479bb902c6f8c8c1f4335f7f39f.tar.gz
Qt-8b212b5f36ef7479bb902c6f8c8c1f4335f7f39f.tar.bz2
Change default TapAndHold timeout and make configurable
The new default timeout is 700ms and is what Nokia Research found through usability studies. Nevertheless lets provide public API to set this through a platform plugin or similar. Reviewed-By: Denis
Diffstat (limited to 'src/gui/kernel/qgesture.h')
-rw-r--r--src/gui/kernel/qgesture.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/kernel/qgesture.h b/src/gui/kernel/qgesture.h
index 8c10895..8f410b1 100644
--- a/src/gui/kernel/qgesture.h
+++ b/src/gui/kernel/qgesture.h
@@ -252,6 +252,9 @@ public:
QPointF position() const;
void setPosition(const QPointF &pos);
+ static void setTimeout(int msecs);
+ static int timeout();
+
friend class QTapAndHoldGestureRecognizer;
};