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>
This commit is contained in:
parent
7e98eb5f5f
commit
2aa62dad1d
@ -106,13 +106,13 @@ void ControllerWidget::updatePreview()
|
|||||||
{
|
{
|
||||||
const Qt::WindowFlags flags = typeControl->type() | hintsControl->hints();
|
const Qt::WindowFlags flags = typeControl->type() | hintsControl->hints();
|
||||||
|
|
||||||
previewWindow->hide();
|
if (previewWidgetButton->isChecked()) {
|
||||||
previewDialog->hide();
|
|
||||||
|
|
||||||
if (previewWidgetButton->isChecked())
|
|
||||||
previewWidget = previewWindow;
|
previewWidget = previewWindow;
|
||||||
else
|
previewDialog->hide();
|
||||||
|
} else {
|
||||||
previewWidget = previewDialog;
|
previewWidget = previewDialog;
|
||||||
|
previewWindow->hide();
|
||||||
|
}
|
||||||
|
|
||||||
if (modalWindowCheckBox->isChecked()) {
|
if (modalWindowCheckBox->isChecked()) {
|
||||||
parentWindow->show();
|
parentWindow->show();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user