summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qgesturemanager.cpp
diff options
context:
space:
mode:
authorThomas Zander <t.zander@nokia.com>2010-07-06 13:51:48 (GMT)
committerThomas Zander <t.zander@nokia.com>2010-07-08 11:17:12 (GMT)
commit062ceb0ec312e54670362c76aefdcac5353d64cd (patch)
tree09b8e4d6f0f1c47d57d5ed46a3bf11d43b8899f5 /src/gui/kernel/qgesturemanager.cpp
parentd06fce88dfe9b07dcc78ed7ab93a1681431138eb (diff)
downloadQt-062ceb0ec312e54670362c76aefdcac5353d64cd.zip
Qt-062ceb0ec312e54670362c76aefdcac5353d64cd.tar.gz
Qt-062ceb0ec312e54670362c76aefdcac5353d64cd.tar.bz2
Avoid unneeded addition
Reviewed-By: Denis
Diffstat (limited to 'src/gui/kernel/qgesturemanager.cpp')
-rw-r--r--src/gui/kernel/qgesturemanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qgesturemanager.cpp b/src/gui/kernel/qgesturemanager.cpp
index e43a560..fe9dd8a 100644
--- a/src/gui/kernel/qgesturemanager.cpp
+++ b/src/gui/kernel/qgesturemanager.cpp
@@ -71,7 +71,7 @@
QT_BEGIN_NAMESPACE
QGestureManager::QGestureManager(QObject *parent)
- : QObject(parent), state(NotGesture), m_lastCustomGestureId(0)
+ : QObject(parent), state(NotGesture), m_lastCustomGestureId(Qt::CustomGesture)
{
qRegisterMetaType<Qt::GestureState>();
@@ -119,7 +119,7 @@ Qt::GestureType QGestureManager::registerGestureRecognizer(QGestureRecognizer *r
if (type == Qt::CustomGesture) {
// generate a new custom gesture id
++m_lastCustomGestureId;
- type = Qt::GestureType(Qt::CustomGesture + m_lastCustomGestureId);
+ type = Qt::GestureType(m_lastCustomGestureId);
}
m_recognizers.insertMulti(type, recognizer);
delete dummy;