summaryrefslogtreecommitdiffstats
path: root/tests/manual/windowflags/controllerwindow.cpp
diff options
context:
space:
mode:
authorSérgio Martins <sergio.martins@kdab.com>2015-01-16 20:43:07 +0000
committerSérgio Martins <sergio.martins@kdab.com>2015-01-19 11:17:49 +0100
commit9087df6bd2dd5198ccf101a237aadee331e51ec3 (patch)
tree67fe085db7a5a9b978d9fd6736ec66b073c579a7 /tests/manual/windowflags/controllerwindow.cpp
parent553a3661c1272b9616900a0e97e101492d468a25 (diff)
windowflags test: Fix showing which flags are set
The text edit that shows which flags we have set should be updated in PreviewWindow::setWindowFlags() and PreviewWidget::setWindowFlags() but QWidget::setWindowFlags() isn't virtual so only the base class one was called. Change-Id: I5c9d47d003d5701dde1ab63df0d349f641d66f44 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'tests/manual/windowflags/controllerwindow.cpp')
-rw-r--r--tests/manual/windowflags/controllerwindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/manual/windowflags/controllerwindow.cpp b/tests/manual/windowflags/controllerwindow.cpp
index 5c06a9a646..2fcc205ca7 100644
--- a/tests/manual/windowflags/controllerwindow.cpp
+++ b/tests/manual/windowflags/controllerwindow.cpp
@@ -137,7 +137,10 @@ void ControllerWindow::updatePreview()
parentWindow->hide();
}
- previewWidget->setWindowFlags(flags);
+ if (previewWidgetButton->isChecked())
+ previewWindow->setWindowFlags(flags);
+ else
+ previewDialog->setWindowFlags(flags);
if (fixedSizeWindowCheckBox->isChecked()) {
previewWidget->setFixedSize(300, 300);