summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qabstracteventdispatcher.cpp
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2009-07-10 11:17:43 (GMT)
committerMartin Smith <msmith@trolltech.com>2009-07-10 11:19:25 (GMT)
commitb420385f15f109765fc31c5bcc5b4ea9498b82d4 (patch)
tree4c32e25edcaaa5ffac1f907667e216b4a32b235b /src/corelib/kernel/qabstracteventdispatcher.cpp
parent9d073c3c92f732ec73587b0696e8994107a98402 (diff)
downloadQt-b420385f15f109765fc31c5bcc5b4ea9498b82d4.zip
Qt-b420385f15f109765fc31c5bcc5b4ea9498b82d4.tar.gz
Qt-b420385f15f109765fc31c5bcc5b4ea9498b82d4.tar.bz2
doc: Clarified that native messages are being handled.
Task-number: 214026
Diffstat (limited to 'src/corelib/kernel/qabstracteventdispatcher.cpp')
-rw-r--r--src/corelib/kernel/qabstracteventdispatcher.cpp25
1 files changed, 14 insertions, 11 deletions
diff --git a/src/corelib/kernel/qabstracteventdispatcher.cpp b/src/corelib/kernel/qabstracteventdispatcher.cpp
index a98d005..e2682f5 100644
--- a/src/corelib/kernel/qabstracteventdispatcher.cpp
+++ b/src/corelib/kernel/qabstracteventdispatcher.cpp
@@ -398,20 +398,23 @@ void QAbstractEventDispatcher::closingDown()
*/
/*!
- Sets the event filter \a filter. Returns a pointer to the filter
- function previously defined.
-
- The event filter is a function that receives all messages taken
- from the system event loop before the event is dispatched to the
- respective target. This includes messages that are not sent to Qt
+ Replaces the event filter function for this
+ QAbstractEventDispatcher with \a filter and returns the replaced
+ event filter function. Only the current event filter function is
+ called. If you want to use both filter functions, save the
+ replaced EventFilter in a place where yours can call it.
+
+ The event filter function set here is called for all messages
+ taken from the system event loop before the event is dispatched to
+ the respective target, including the messages not meant for Qt
objects.
- The function can return true to stop the event to be processed by
- Qt, or false to continue with the standard event processing.
+ The event filter function should return true if the message should
+ be filtered, (i.e. stopped). It should return false to allow
+ processing the message to continue.
- Only one filter can be defined, but the filter can use the return
- value to call the previously set event filter. By default, no
- filter is set (i.e. the function returns 0).
+ By default, no event filter function is set (i.e., this function
+ returns a null EventFilter the first time it is called).
*/
QAbstractEventDispatcher::EventFilter QAbstractEventDispatcher::setEventFilter(EventFilter filter)
{