diff options
author | Axel Spoerl <axel.spoerl@qt.io> | 2022-10-28 15:13:11 +0200 |
---|---|---|
committer | Axel Spoerl <axel.spoerl@qt.io> | 2022-10-29 14:06:24 +0000 |
commit | b1df84b9d8758c7a59e722a5deb952cfa99a6dcb (patch) | |
tree | 7cda6209a5d914fe03d4054f0eabd19ead5db119 /src/gui/kernel/qwindow.cpp | |
parent | 0b382080c2914e5129ede19c8ca9a871e7d3bf38 (diff) | |
download | qtbase-b1df84b9d8758c7a59e722a5deb952cfa99a6dcb.tar.gz |
Emit windowStateChanged in QGuiApplicationPrivate instead of QWindow
When the visual state of a QWindow changed, QGuiApplicationPrivate
sent an event to QWindow, where the visibility was updated and the
signal was emitted.
Following the pricinple of other visual updates, these actions have
been moved to QGuiApplicationPrivate.
Task-number: QTBUG-102478
Change-Id: I94f2f5b7570580ce422ca9dc03013742f6a9baba
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/gui/kernel/qwindow.cpp')
-rw-r--r-- | src/gui/kernel/qwindow.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/gui/kernel/qwindow.cpp b/src/gui/kernel/qwindow.cpp index 2d664f1117..d01ff11aa7 100644 --- a/src/gui/kernel/qwindow.cpp +++ b/src/gui/kernel/qwindow.cpp @@ -2501,13 +2501,6 @@ bool QWindow::event(QEvent *ev) setIcon(icon()); break; - case QEvent::WindowStateChange: { - Q_D(QWindow); - emit windowStateChanged(QWindowPrivate::effectiveState(d->windowState)); - d->updateVisibility(); - break; - } - #if QT_CONFIG(tabletevent) case QEvent::TabletPress: case QEvent::TabletMove: |