diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-11 10:28:44 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-12 15:25:06 +0100 |
commit | 03e03d7ceb6da284f217fddd76b35d0c2b002af7 (patch) | |
tree | 51567314eebe085ab244d52b7adb44c788ecbc2d /src/corelib/kernel/qcoreapplication.cpp | |
parent | 267bb4ec6c628d998ba7f11bcdf56cc03b0aa5a0 (diff) |
Purge QCoreApplicationPrivate::cloneEvent and overrides
Not used anywhere in Qt 6, and if whatever needs this ever comes back,
then we won't implement it like this.
Change-Id: I99655ba5825644cef3686bbe50ca688b68f5c2a4
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/kernel/qcoreapplication.cpp')
-rw-r--r-- | src/corelib/kernel/qcoreapplication.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp index 5f169674fc..758e1d3caa 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -2224,22 +2224,6 @@ void QCoreApplicationPrivate::setApplicationFilePath(const QString &path) QCoreApplicationPrivate::cachedApplicationFilePath = new QString(path); } -#ifndef QT_NO_QOBJECT -QEvent *QCoreApplicationPrivate::cloneEvent(QEvent *e) -{ - switch (e->type()) { - case QEvent::None: - return new QEvent(*e); - case QEvent::Timer: - return new QTimerEvent(*static_cast<QTimerEvent*>(e)); - default: - Q_ASSERT_X(false, "cloneEvent()", "not implemented"); - break; - } - return nullptr; -} -#endif - /*! Returns the directory that contains the application executable. |