[Gui] Fix Close without Saving button size (#19342)

This commit is contained in:
Syres916
2025-02-02 22:24:27 +00:00
committed by GitHub
parent a52f2e5081
commit e58388a222
4 changed files with 9 additions and 6 deletions

View File

@@ -784,6 +784,7 @@ void MainWindow::closeActiveWindow ()
int MainWindow::confirmSave(const char *docName, QWidget *parent, bool addCheckbox) {
QMessageBox box(parent?parent:this);
box.setObjectName(QStringLiteral("confirmSave"));
box.setIcon(QMessageBox::Question);
box.setWindowFlags(box.windowFlags() | Qt::WindowStaysOnTopHint);
box.setWindowTitle(QObject::tr("Unsaved document"));
@@ -798,7 +799,7 @@ int MainWindow::confirmSave(const char *docName, QWidget *parent, bool addCheckb
box.setDefaultButton(QMessageBox::Save);
box.setEscapeButton(QMessageBox::Cancel);
QCheckBox checkBox(QObject::tr("Apply answer to all"));
QCheckBox checkBox(QObject::tr("Apply to all"));
ParameterGrp::handle hGrp;
if(addCheckbox) {
hGrp = App::GetApplication().GetUserParameter().