diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-12-09 19:16:34 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2020-12-09 21:36:17 +0000 |
commit | 1c37e43a8e1a8cc7cf432546d27a2fcddf933260 (patch) | |
tree | 3c996ff1417e67b97bab7d7f5a2d1d815bafe9de /tests/auto/corelib | |
parent | 1b5455b979d8aaab83de011a06d926da7443ae0d (diff) |
macOS: Remove warning about KVO observers on QNSWindow/QNSPanel
NSTitleBarView in Big Sur will observe the window it is in, but makes
sure to remove these observers in viewWillMoveToWindow, as it should.
To avoid spamming user logs with this warning we remove it.
It was dubious what cases it would have caught anyways, as anyone
trying to KVO observe properties Z of a child object Y of X.Y would
need to track whether X changes its Y between adding and removing
the observer. There are no guarantees that Y is stable, and this
applies to an NSView's window property as well.
Change-Id: I27a0d04625f96c4c5d382c39ac068721ce1e8f9d
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit b58d6831de79ad21463e20c079093667918ee626)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests/auto/corelib')
0 files changed, 0 insertions, 0 deletions