summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qevent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qevent.cpp')
-rw-r--r--src/gui/kernel/qevent.cpp41
1 files changed, 32 insertions, 9 deletions
diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp
index 035347e4da..997814bd36 100644
--- a/src/gui/kernel/qevent.cpp
+++ b/src/gui/kernel/qevent.cpp
@@ -309,12 +309,13 @@ QEventPoint *QPointerEvent::pointById(int id)
}
/*!
- Returns \c true if every point in points() has an exclusiveGrabber().
+ Returns \c true if every point in points() has either an exclusiveGrabber()
+ or one or more passiveGrabbers().
*/
bool QPointerEvent::allPointsGrabbed() const
{
for (const auto &p : points()) {
- if (exclusiveGrabber(p) && passiveGrabbers(p).isEmpty())
+ if (!exclusiveGrabber(p) && passiveGrabbers(p).isEmpty())
return false;
}
return true;
@@ -786,6 +787,7 @@ QMouseEvent::~QMouseEvent()
}
/*!
+ \fn Qt::MouseEventSource QMouseEvent::source() const
\since 5.3
\deprecated [6.0] Use pointingDevice() instead.
@@ -814,12 +816,13 @@ QMouseEvent::~QMouseEvent()
decide how to react to this event. But it's even better to react to the
original event rather than handling only mouse events.
*/
-#if QT_DEPRECATED_SINCE(6, 0)
+// Note: the docs mention 6.0 as a deprecation version. That is correct and
+// intended, because we want our users to stop using it! Internally we will
+// deprecate it when we port our code away from using it.
Qt::MouseEventSource QMouseEvent::source() const
{
return Qt::MouseEventSource(m_source);
}
-#endif
/*!
\since 5.3
@@ -3164,10 +3167,24 @@ void QDropEvent::setDropAction(Qt::DropAction action)
*/
/*!
+ \fn QPointF QDropEvent::position() const
+ \since 6.0
+
+ Returns the position where the drop was made.
+*/
+
+/*!
\fn Qt::MouseButtons QDropEvent::mouseButtons() const
\deprecated [6.0] Use buttons() instead.
- Returns the mouse buttons that are pressed..
+ Returns the mouse buttons that are pressed.
+*/
+
+/*!
+ \fn Qt::MouseButtons QDropEvent::buttons() const
+ \since 6.0
+
+ Returns the mouse buttons that are pressed.
*/
/*!
@@ -3178,6 +3195,13 @@ void QDropEvent::setDropAction(Qt::DropAction action)
*/
/*!
+ \fn Qt::KeyboardModifiers QDropEvent::modifiers() const
+ \since 6.0
+
+ Returns the modifier keys that are pressed.
+*/
+
+/*!
\fn void QDropEvent::setDropAction(Qt::DropAction action)
Sets the \a action to be performed on the data by the target.
@@ -4106,10 +4130,7 @@ QDebug operator<<(QDebug dbg, const QEvent *e)
bool isMouse = false;
switch (type) {
case QEvent::Expose:
-QT_WARNING_PUSH
-QT_WARNING_DISABLE_DEPRECATED
- dbg << "QExposeEvent(" << static_cast<const QExposeEvent *>(e)->region() << ')';
-QT_WARNING_POP
+ dbg << "QExposeEvent()";
break;
case QEvent::Paint:
dbg << "QPaintEvent(" << static_cast<const QPaintEvent *>(e)->region() << ')';
@@ -4551,6 +4572,7 @@ QTouchEvent::QTouchEvent(QEvent::Type eventType,
}
}
+#if QT_DEPRECATED_SINCE(6, 0)
/*!
\deprecated [6.0] Use another constructor.
@@ -4570,6 +4592,7 @@ QTouchEvent::QTouchEvent(QEvent::Type eventType,
for (QEventPoint &point : m_points)
QMutableEventPoint::from(point).setDevice(device);
}
+#endif // QT_DEPRECATED_SINCE(6, 0)
/*!
Destroys the QTouchEvent.