aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickwindow.cpp
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-08-26 11:21:49 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2020-08-26 13:29:44 +0000
commit9aa152da3d416c7d5b4e0e970b6eb1a301df1028 (patch)
treef6c770dffa6c86025ce387ba3c89edff2deee0fc /src/quick/items/qquickwindow.cpp
parentbb1e23d8f02451f92a9fa0f2570de4dce065170c (diff)
Remove deprecated QQuickWindow::sendEvent
[ChangeLog][QQuickWindow] Removed the obsolete QQuickWindow::sendEvent function. Use QCoreApplication::sendEvent instead. Change-Id: I583ea8f87b870b136315efa4e1105de484e5f1ab Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/items/qquickwindow.cpp')
-rw-r--r--src/quick/items/qquickwindow.cpp56
1 files changed, 0 insertions, 56 deletions
diff --git a/src/quick/items/qquickwindow.cpp b/src/quick/items/qquickwindow.cpp
index 60d48a6bf0..9489789a87 100644
--- a/src/quick/items/qquickwindow.cpp
+++ b/src/quick/items/qquickwindow.cpp
@@ -3600,62 +3600,6 @@ void QQuickWindowPrivate::rhiCreationFailureMessage(const QString &backendName,
*untranslatedMessage = QString::fromLatin1(msg).arg(backendName);
}
-#if QT_DEPRECATED_SINCE(5, 8)
-
-// ### Qt6: remove
-/*!
- Propagates an event \a e to a QQuickItem \a item on the window.
-
- Use \l QCoreApplication::sendEvent() directly instead.
-
- The return value is currently not used.
-
- \deprecated
-*/
-bool QQuickWindow::sendEvent(QQuickItem *item, QEvent *e)
-{
- Q_D(QQuickWindow);
-
- if (!item) {
- qWarning("QQuickWindow::sendEvent: Cannot send event to a null item");
- return false;
- }
-
- Q_ASSERT(e);
-
- switch (e->type()) {
- case QEvent::KeyPress:
- case QEvent::KeyRelease:
- e->accept();
- QCoreApplication::sendEvent(item, e);
- while (!e->isAccepted() && (item = item->parentItem())) {
- e->accept();
- QCoreApplication::sendEvent(item, e);
- }
- break;
- case QEvent::MouseButtonPress:
- case QEvent::MouseButtonRelease:
- case QEvent::MouseButtonDblClick:
- case QEvent::MouseMove: {
- // XXX todo - should sendEvent be doing this? how does it relate to forwarded events?
- d->hasFiltered.clear();
- if (!d->sendFilteredMouseEvent(e, item, item->parentItem())) {
- // accept because qml items by default accept and have to explicitly opt out of accepting
- e->accept();
- QCoreApplication::sendEvent(item, e);
- }
- }
- break;
- default:
- QCoreApplication::sendEvent(item, e);
- break;
- }
-
- return false;
-}
-
-#endif
-
void QQuickWindowPrivate::cleanupNodes()
{
for (int ii = 0; ii < cleanupNodeList.count(); ++ii)