diff options
Diffstat (limited to 'src/gui/kernel/qevent.cpp')
-rw-r--r-- | src/gui/kernel/qevent.cpp | 47 |
1 files changed, 34 insertions, 13 deletions
diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp index 139b36ef71..50d9bbb2cc 100644 --- a/src/gui/kernel/qevent.cpp +++ b/src/gui/kernel/qevent.cpp @@ -694,6 +694,13 @@ QHoverEvent::~QHoverEvent() */ /*! + \enum QWheelEvent::anonymous + \internal + + \value DefaultDeltasPerStep Defaqult deltas per step +*/ + +/*! \fn Qt::MouseButtons QWheelEvent::buttons() const Returns the mouse state when the event occurred. @@ -2400,8 +2407,9 @@ QVariant QInputMethodQueryEvent::value(Qt::InputMethodQuery query) const The \a tangentialPressure parameter contins the tangential pressure of an air brush. If the device does not support tangential pressure, pass 0 here. - \a rotation contains the device's rotation in degrees. 4D mice and the Wacom - Art Pen support rotation. If the device does not support rotation, pass 0 here. + \a rotation contains the device's rotation in degrees. + 4D mice, the Wacom Art Pen, and the Apple Pencil support rotation. + If the device does not support rotation, pass 0 here. The \a button that caused the event is given as a value from the \l Qt::MouseButton enum. If the event \a type is not \l TabletPress or @@ -2542,10 +2550,12 @@ Qt::MouseButtons QTabletEvent::buttons() const /*! \fn qreal QTabletEvent::rotation() const - Returns the rotation of the current device in degress. This is usually - given by a 4D Mouse. If the device does not support rotation this value is - always 0.0. - + Returns the rotation of the current tool in degrees, where zero means the + tip of the stylus is pointing towards the top of the tablet, a positive + value means it's turned to the right, and a negative value means it's + turned to the left. This can be given by a 4D Mouse or a rotation-capable + stylus (such as the Wacom Art Pen or the Apple Pencil). If the device does + not support rotation, this value is always 0.0. */ /*! @@ -3751,14 +3761,25 @@ static inline void formatInputMethodEvent(QDebug d, const QInputMethodEvent *e) static inline void formatInputMethodQueryEvent(QDebug d, const QInputMethodQueryEvent *e) { + QDebugStateSaver saver(d); + d.noquote(); const Qt::InputMethodQueries queries = e->queries(); d << "QInputMethodQueryEvent(queries=" << showbase << hex << int(queries) << noshowbase << dec << ", {"; - for (unsigned mask = 1; mask <= Qt::ImTextAfterCursor; mask<<=1) { + for (unsigned mask = 1; mask <= Qt::ImInputItemClipRectangle; mask<<=1) { if (queries & mask) { - const QVariant value = e->value(static_cast<Qt::InputMethodQuery>(mask)); - if (value.isValid()) - d << '[' << showbase << hex << mask << noshowbase << dec << '=' << value << "],"; + const Qt::InputMethodQuery query = static_cast<Qt::InputMethodQuery>(mask); + const QVariant value = e->value(query); + if (value.isValid()) { + d << '['; + QtDebugUtils::formatQEnum(d, query); + d << '='; + if (query == Qt::ImHints) + QtDebugUtils::formatQFlags(d, Qt::InputMethodHints(value.toInt())); + else + d << value.toString(); + d << "],"; + } } } d << "})"; @@ -4506,7 +4527,7 @@ QTouchEvent::TouchPoint::TouchPoint(int id) { } /*! - \fn TouchPoint::TouchPoint(const TouchPoint &other) + \fn QTouchEvent::TouchPoint::TouchPoint(const QTouchEvent::TouchPoint &other) \internal Constructs a copy of \a other. @@ -5048,12 +5069,12 @@ void QTouchEvent::TouchPoint::setFlags(InfoFlags flags) } /*! - \fn TouchPoint &TouchPoint::operator=(const TouchPoint &other) + \fn QTouchEvent::TouchPoint &QTouchEvent::TouchPoint::operator=(const QTouchEvent::TouchPoint &other) \internal */ /*! - \fn TouchPoint &TouchPoint::operator=(TouchPoint &&other) + \fn QTouchEvent::TouchPoint &QTouchEvent::TouchPoint::operator=(QTouchEvent::TouchPoint &&other) \internal */ /*! |