diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-02-01 13:35:36 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2017-02-09 14:10:51 +0000 |
commit | 2aa62dad1d0de1142d446ecc4a6b38393231a17d (patch) | |
tree | d725e53faaf12d35d0061c90ca3d3c1f28d8cb08 /tests/manual | |
parent | 7e98eb5f5fd40b350e12ca7b835bfa263ca5bd35 (diff) |
windowflags test: Don't hide windows unconditionally when applying new state
Makes operations like minimizing a window happen "behind the scenes"
because the window is hidden during the state change.
Change-Id: I01a00661e57f2dcfa6aef78ee0cfa36fbed1bb03
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r-- | tests/manual/windowflags/controllerwindow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/manual/windowflags/controllerwindow.cpp b/tests/manual/windowflags/controllerwindow.cpp index d02f64c27b..42c7516402 100644 --- a/tests/manual/windowflags/controllerwindow.cpp +++ b/tests/manual/windowflags/controllerwindow.cpp @@ -106,13 +106,13 @@ void ControllerWidget::updatePreview() { const Qt::WindowFlags flags = typeControl->type() | hintsControl->hints(); - previewWindow->hide(); - previewDialog->hide(); - - if (previewWidgetButton->isChecked()) + if (previewWidgetButton->isChecked()) { previewWidget = previewWindow; - else + previewDialog->hide(); + } else { previewWidget = previewDialog; + previewWindow->hide(); + } if (modalWindowCheckBox->isChecked()) { parentWindow->show(); |