Skip to content

Commit

Permalink
QWidgetWindow::event(): Call base implementation for QEvent::WindowSt…
Browse files Browse the repository at this point in the history
…ateChange

The base implementation takes care of updating visibility and emitting
signals.

Task-number: QTBUG-59313
Change-Id: I270b37c894420902488d89dc0c79f4c12b8d9a29
Reviewed-by: Qt CI Bot <[email protected]>
Reviewed-by: Olivier Goffart (Woboq GmbH) <[email protected]>
  • Loading branch information
FriedemannKleint committed Mar 8, 2017
1 parent 3246339 commit 535b142
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/widgets/kernel/qwidgetwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ bool QWidgetWindow::event(QEvent *event)
return true;

case QEvent::WindowStateChange:
QWindow::event(event); // Update QWindow::Visibility and emit signals.
handleWindowStateChangedEvent(static_cast<QWindowStateChangeEvent *>(event));
return true;

Expand Down

0 comments on commit 535b142

Please sign in to comment.