summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qcoreapplication.cpp
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2012-07-20 20:52:44 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-24 00:08:28 +0200
commit42c86bba9d46d8d16ffd6c90ec34857eccc23df4 (patch)
tree703d79deb66054ed88613474f8d87e9f742f65dd /src/corelib/kernel/qcoreapplication.cpp
parent607c37befb145c3aa1b9d29365ac682a2bd3a55f (diff)
Remove winEventFilter, replaced with installNativeEventFilter.
No reason to keep a virtual method for Windows when all other similar methods (macEvent and x11Event) have been removed, and when installNativeEventFilter provides a much nicer solution (no need to derive from QApplication). Change-Id: Ia2a7960e320fcbd04cef91f467900861dbb377c1 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/corelib/kernel/qcoreapplication.cpp')
-rw-r--r--src/corelib/kernel/qcoreapplication.cpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp
index 5ffd94b068..58d8957812 100644
--- a/src/corelib/kernel/qcoreapplication.cpp
+++ b/src/corelib/kernel/qcoreapplication.cpp
@@ -2139,42 +2139,6 @@ void QCoreApplication::removeLibraryPath(const QString &path)
#endif //QT_NO_LIBRARY
/*!
- Sends \a message through the event filters that were set by
- installNativeEventFilter(). This function returns true as soon as an
- event filter returns true, and false otherwise to indicate that
- the processing of the event should continue.
-
- Subclasses of QAbstractEventDispatcher \e must call this function
- for \e all messages received from the system to ensure
- compatibility with any extensions that may be used in the
- application.
-
- Note that the type of \a message is platform dependent. See
- QAbstractNativeEventFilter for details.
-
- \sa installNativeEventFilter()
- \since 5.0
-
- \internal
- This method only exists for the Windows event dispatcher to call the winEventFilter virtual.
- Every other platform can just use QAbstractNativeEventFilter::filterNativeEvent directly.
-*/
-bool QCoreApplication::filterNativeEvent(const QByteArray &eventType, void *message, long *result)
-{
- if (result)
- *result = 0;
-#ifdef Q_OS_WIN
- if (winEventFilter(reinterpret_cast<MSG *>(message), result))
- return true;
-#endif
- QAbstractEventDispatcher* dispatcher = QAbstractEventDispatcher::instance();
- if (dispatcher)
- return dispatcher->filterNativeEvent(eventType, message, result);
- return false;
-}
-
-
-/*!
Installs an event filter \a filterObj for all native events
received by the application in the main thread.