summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qevent.cpp
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-02-27 13:33:49 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-05-11 13:41:36 (GMT)
commitce50bdd854497b2a2aedbdb4417b532799086241 (patch)
treec81785fa68cd674b8b4a7b3102da67ef12b1b16e /src/gui/kernel/qevent.cpp
parentaa4334b77702d99d4aa3da853dd66104eb4a8123 (diff)
downloadQt-ce50bdd854497b2a2aedbdb4417b532799086241.zip
Qt-ce50bdd854497b2a2aedbdb4417b532799086241.tar.gz
Qt-ce50bdd854497b2a2aedbdb4417b532799086241.tar.bz2
Added some documentation.
Fixed missing const specifiers.
Diffstat (limited to 'src/gui/kernel/qevent.cpp')
-rw-r--r--src/gui/kernel/qevent.cpp44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp
index a7e1101..d7d193c 100644
--- a/src/gui/kernel/qevent.cpp
+++ b/src/gui/kernel/qevent.cpp
@@ -3509,6 +3509,50 @@ QMenubarUpdatedEvent::QMenubarUpdatedEvent(QMenuBar * const menuBar)
#endif
+/*!
+ \class QGestureEvent
+ \ingroup events
+
+ \brief The QGestureEvent class provides the parameters used for
+ gesture recognition.
+
+ The QGestureEvent class contains a list of gestures that are being
+ executed right now (QGestureEvent::gestureTypes()) and a list of
+ gestures that are cancelled (the gesture might be cancelled
+ because the window lost focus, or because of timeout, etc).
+
+ \sa QGesture
+*/
+
+/*! \fn QWidget *QGestureEvent::targetWidget() const
+
+ Returns the widget the gesture event is send to.
+*/
+
+/*! \fn bool contains(const Qt::GestureType &type) const
+
+ Checks if the gesture event contains gesture of specific \a type.
+*/
+
+/*! \fn QList<Qt::GestureType> gestureTypes() const
+
+ Returns a list of gesture names that the event contains.
+*/
+
+/*! \fn const QGesture* gesture(const Qt::GestureType &type) const
+
+ Returns extended information about a gesture of specific \a type.
+*/
+
+/*! \fn QSet<Qt::GestureType> cancelledGestures() const
+
+ Returns a set of gesture names that used to be executed, but got
+ cancelled (i.e. they were not finished properly).
+*/
+
+
+
+
QGestureEvent::QGestureEvent(QWidget *targetWidget, const QList<QGesture*> &gestures,
const QSet<Qt::GestureType> &cancelledGestures)
: QEvent(QEvent::Gesture), m_targetWidget(targetWidget),