Changeset 846 for trunk/src/gui/kernel/qevent.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/kernel/qevent.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 1971 1971 Z-axis, pass zero here. 1972 1972 1973 The \a tangentialPressure param ater contins the tangential pressure of an air1973 The \a tangentialPressure parameter contins the tangential pressure of an air 1974 1974 brush. If the device does not support tangential pressure, pass 0 here. 1975 1975 … … 3422 3422 dbg.nospace() << "QChildEvent(" << n << ", " << (static_cast<const QChildEvent*>(e))->child(); 3423 3423 return dbg.space(); 3424 #ifndef QT_NO_GESTURES 3424 3425 case QEvent::Gesture: 3425 3426 n = "Gesture"; 3426 3427 break; 3428 #endif 3427 3429 default: 3428 3430 dbg.nospace() << "QEvent(" << (const void *)e << ", type = " << e->type() << ')'; … … 3626 3628 \since 4.6 3627 3629 \ingroup events 3628 \ingroup multitouch3630 \ingroup touch 3629 3631 3630 3632 \section1 Enabling Touch Events … … 3640 3642 Similarly to QMouseEvent, Qt automatically grabs each touch point on the first press inside a 3641 3643 widget, and the widget will receive all updates for the touch point until it is released. 3642 Note that it is possible for a widget to receive events for multipletouch points, and that3644 Note that it is possible for a widget to receive events for numerous touch points, and that 3643 3645 multiple widgets may be receiving touch events at the same time. 3644 3646 … … 3716 3718 \i As mentioned above, enabling touch events means multiple widgets can be receiving touch 3717 3719 events simultaneously. Combined with the default QWidget::event() handling for QTouchEvents, 3718 this gives you great flexibility in designing multi-touch user interfaces. Be aware of the3720 this gives you great flexibility in designing touch user interfaces. Be aware of the 3719 3721 implications. For example, it is possible that the user is moving a QSlider with one finger and 3720 3722 pressing a QPushButton with another. The signals emitted by these widgets will be … … 3728 3730 \i QTouchEvents are not affected by a \l{QWidget::grabMouse()}{mouse grab} or an 3729 3731 \l{QApplication::activePopupWidget()}{active pop-up widget}. The behavior of QTouchEvents is 3730 undefined when opening a pop-up or grabbing the mouse while there are m ultiple active touch3732 undefined when opening a pop-up or grabbing the mouse while there are more than one active touch 3731 3733 points. 3732 3734 … … 4255 4257 } 4256 4258 4259 #ifndef QT_NO_GESTURES 4257 4260 /*! 4258 4261 \class QGestureEvent … … 4278 4281 QGestureEvent::accept() for each of them, or an event filter consumes the 4279 4282 event. 4283 4284 \section1 Further Reading 4285 4286 For an overview of gesture handling in Qt and information on using gestures 4287 in your applications, see the \l{Gestures Programming} document. 4280 4288 4281 4289 \sa QGesture, QGestureRecognizer, … … 4559 4567 #endif 4560 4568 4569 #endif // QT_NO_GESTURES 4570 4561 4571 QT_END_NAMESPACE
Note:
See TracChangeset
for help on using the changeset viewer.