equal
deleted
inserted
replaced
391 |
391 |
392 Typedef for a function with the signature |
392 Typedef for a function with the signature |
393 |
393 |
394 \snippet doc/src/snippets/code/src_corelib_kernel_qabstracteventdispatcher.cpp 0 |
394 \snippet doc/src/snippets/code/src_corelib_kernel_qabstracteventdispatcher.cpp 0 |
395 |
395 |
|
396 Note that the type of the \a message is platform dependent. The |
|
397 following table shows the \a {message}'s type on Windows, Mac, and |
|
398 X11. You can do a static cast to these types. |
|
399 |
|
400 \table |
|
401 \header |
|
402 \o Platform |
|
403 \o type |
|
404 \row |
|
405 \o Windows |
|
406 \o MSG |
|
407 \row |
|
408 \o X11 |
|
409 \o XEvent |
|
410 \row |
|
411 \o Mac |
|
412 \o NSEvent |
|
413 \endtable |
|
414 |
|
415 |
|
416 |
396 \sa setEventFilter(), filterEvent() |
417 \sa setEventFilter(), filterEvent() |
397 */ |
418 */ |
398 |
419 |
399 /*! |
420 /*! |
400 Replaces the event filter function for this |
421 Replaces the event filter function for this |
432 Subclasses of QAbstractEventDispatcher \e must call this function |
453 Subclasses of QAbstractEventDispatcher \e must call this function |
433 for \e all messages received from the system to ensure |
454 for \e all messages received from the system to ensure |
434 compatibility with any extensions that may be used in the |
455 compatibility with any extensions that may be used in the |
435 application. |
456 application. |
436 |
457 |
|
458 Note that the type of \a message is platform dependent. See |
|
459 QAbstractEventDispatcher::EventFilter for details. |
|
460 |
437 \sa setEventFilter() |
461 \sa setEventFilter() |
438 */ |
462 */ |
439 bool QAbstractEventDispatcher::filterEvent(void *message) |
463 bool QAbstractEventDispatcher::filterEvent(void *message) |
440 { |
464 { |
441 Q_D(QAbstractEventDispatcher); |
465 Q_D(QAbstractEventDispatcher); |