QObject: Make it clear we don't install duplicated event filters
Pick-to: 6.7 6.6 6.5 6.2 5.15 Change-Id: I3048b50700880dd2445a5a65823fef02b196ce7d Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
parent
f83ec0c76b
commit
43de846442
@ -2311,6 +2311,9 @@ void QObjectPrivate::setParent_helper(QObject *o)
|
|||||||
If multiple event filters are installed on a single object, the
|
If multiple event filters are installed on a single object, the
|
||||||
filter that was installed last is activated first.
|
filter that was installed last is activated first.
|
||||||
|
|
||||||
|
If \a filterObj has already been installed for this object,
|
||||||
|
this function moves it so it acts as if it was installed last.
|
||||||
|
|
||||||
Here's a \c KeyPressEater class that eats the key presses of its
|
Here's a \c KeyPressEater class that eats the key presses of its
|
||||||
monitored objects:
|
monitored objects:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user