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>
This commit is contained in:
parent
553a3661c1
commit
9087df6bd2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user