Fix size of Unsaved changes dialog.
Since Qt 6 produces warnings "QWindowsWindow::setGeometry: Unable to set geometry".
This commit is contained in:
parent
0cd42f83e6
commit
748d18ce9a
|
@ -1794,6 +1794,7 @@ auto VPMainWindow::MaybeSave() -> bool
|
||||||
}
|
}
|
||||||
|
|
||||||
messageBox->setWindowModality(Qt::ApplicationModal);
|
messageBox->setWindowModality(Qt::ApplicationModal);
|
||||||
|
messageBox->setFixedSize(300, 85);
|
||||||
const auto ret = static_cast<QMessageBox::StandardButton>(messageBox->exec());
|
const auto ret = static_cast<QMessageBox::StandardButton>(messageBox->exec());
|
||||||
|
|
||||||
switch (ret)
|
switch (ret)
|
||||||
|
|
|
@ -1942,6 +1942,7 @@ auto TKMMainWindow::MaybeSave() -> bool
|
||||||
}
|
}
|
||||||
|
|
||||||
messageBox->setWindowModality(Qt::ApplicationModal);
|
messageBox->setWindowModality(Qt::ApplicationModal);
|
||||||
|
messageBox->setFixedSize(300, 85);
|
||||||
const auto ret = static_cast<QMessageBox::StandardButton>(messageBox->exec());
|
const auto ret = static_cast<QMessageBox::StandardButton>(messageBox->exec());
|
||||||
|
|
||||||
switch (ret)
|
switch (ret)
|
||||||
|
|
|
@ -3474,6 +3474,7 @@ auto TMainWindow::MaybeSave() -> bool
|
||||||
}
|
}
|
||||||
|
|
||||||
messageBox->setWindowModality(Qt::ApplicationModal);
|
messageBox->setWindowModality(Qt::ApplicationModal);
|
||||||
|
messageBox->setFixedSize(300, 85);
|
||||||
const auto ret = static_cast<QMessageBox::StandardButton>(messageBox->exec());
|
const auto ret = static_cast<QMessageBox::StandardButton>(messageBox->exec());
|
||||||
|
|
||||||
switch (ret)
|
switch (ret)
|
||||||
|
|
|
@ -5756,6 +5756,7 @@ auto MainWindow::MaybeSave() -> bool
|
||||||
}
|
}
|
||||||
|
|
||||||
messageBox->setWindowModality(Qt::ApplicationModal);
|
messageBox->setWindowModality(Qt::ApplicationModal);
|
||||||
|
messageBox->setFixedSize(300, 85);
|
||||||
const auto ret = static_cast<QMessageBox::StandardButton>(messageBox->exec());
|
const auto ret = static_cast<QMessageBox::StandardButton>(messageBox->exec());
|
||||||
|
|
||||||
switch (ret)
|
switch (ret)
|
||||||
|
|
|
@ -502,6 +502,7 @@ auto WatermarkWindow::MaybeSave() -> bool
|
||||||
}
|
}
|
||||||
|
|
||||||
messageBox->setWindowModality(Qt::ApplicationModal);
|
messageBox->setWindowModality(Qt::ApplicationModal);
|
||||||
|
messageBox->setFixedSize(300, 85);
|
||||||
const auto ret = static_cast<QMessageBox::StandardButton>(messageBox->exec());
|
const auto ret = static_cast<QMessageBox::StandardButton>(messageBox->exec());
|
||||||
|
|
||||||
switch (ret)
|
switch (ret)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user