diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-07-14 15:19:38 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2020-07-15 12:55:56 +0200 |
commit | 53496e67f0b78645c6080e9218c7a36bc5a9d76d (patch) | |
tree | 43ef02689668e0c5a8876fd4d17c8300190c044a /src/gui/kernel/qevent.h | |
parent | 5ca5dfa89e05c6deda6cd9282cd505eb324228cd (diff) | |
download | qtbase-53496e67f0b78645c6080e9218c7a36bc5a9d76d.tar.gz |
Un-deprecate QMouseEvent::flags() and QGraphicsSceneMouseEvent::flags()
On one hand it looks like API clutter: a whole Qt namespace enum just
to track whether an individual mouse click is about to geenerate a
MouseButtonDblClick event. On the other hand, we should not remove it
without replacing it somehow, so that users don't lose the workaround for
QTBUG-25831 that it provides. That would be an invasive change because
this flags property exists in QMouseEvent, QGraphicsSceneMouseEvent
and in MouseArea { onClicked: doSomethingWith(mouse.flags) }
Reverts a small part of 4e400369c08db251cd489fec1229398c224d02b4
Task-number: QTBUG-25831
Change-Id: I9a3b4f6cc6b858012186f10ed57689f8c0f5fd79
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/gui/kernel/qevent.h')
-rw-r--r-- | src/gui/kernel/qevent.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gui/kernel/qevent.h b/src/gui/kernel/qevent.h index 0e17cca4e8..f1c8b09a29 100644 --- a/src/gui/kernel/qevent.h +++ b/src/gui/kernel/qevent.h @@ -307,7 +307,6 @@ public: QT_DEPRECATED_VERSION_X_6_0("Use globalPosition()") QPointF screenPos() const { return globalPosition(); } Qt::MouseEventSource source() const; - QT_DEPRECATED_VERSION_X_6_0("Internal, don't use") Qt::MouseEventFlags flags() const; #endif // QT_DEPRECATED_SINCE(6, 0) }; |