Fix size of Unsaved changes dialog.

Since Qt 6 produces warnings "QWindowsWindow::setGeometry: Unable to set geometry".
This commit is contained in:
Roman Telezhynskyi 2024-01-29 17:07:54 +02:00
parent 0cd42f83e6
commit 748d18ce9a
5 changed files with 5 additions and 0 deletions

View File

@ -1794,6 +1794,7 @@ auto VPMainWindow::MaybeSave() -> bool
}
messageBox->setWindowModality(Qt::ApplicationModal);
messageBox->setFixedSize(300, 85);
const auto ret = static_cast<QMessageBox::StandardButton>(messageBox->exec());
switch (ret)

View File

@ -1942,6 +1942,7 @@ auto TKMMainWindow::MaybeSave() -> bool
}
messageBox->setWindowModality(Qt::ApplicationModal);
messageBox->setFixedSize(300, 85);
const auto ret = static_cast<QMessageBox::StandardButton>(messageBox->exec());
switch (ret)

View File

@ -3474,6 +3474,7 @@ auto TMainWindow::MaybeSave() -> bool
}
messageBox->setWindowModality(Qt::ApplicationModal);
messageBox->setFixedSize(300, 85);
const auto ret = static_cast<QMessageBox::StandardButton>(messageBox->exec());
switch (ret)

View File

@ -5756,6 +5756,7 @@ auto MainWindow::MaybeSave() -> bool
}
messageBox->setWindowModality(Qt::ApplicationModal);
messageBox->setFixedSize(300, 85);
const auto ret = static_cast<QMessageBox::StandardButton>(messageBox->exec());
switch (ret)

View File

@ -502,6 +502,7 @@ auto WatermarkWindow::MaybeSave() -> bool
}
messageBox->setWindowModality(Qt::ApplicationModal);
messageBox->setFixedSize(300, 85);
const auto ret = static_cast<QMessageBox::StandardButton>(messageBox->exec());
switch (ret)