make all convenience functions in QFileDialog open modal dialogs

most convenience functions in qfiledialog.cpp (e.g. getSaveFileUrl, getOpenFileUrl) open modal dialogs, with the exception of getOpenFileContent and saveFileContent. This makes every function consistently open modal dialogs

Fixes: QTBUG-137329
Change-Id: I48952144ed15596b9acba3230c63cece613fb045
Reviewed-by: David Faure <david.faure@kdab.com>
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
(cherry picked from commit 25fdc044f58d426c3056409e2883becdc3cf0bd1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit e7a9bb77fe8b0717491480dc2ca976ec3ce9f633)
This commit is contained in:
Nic Zonta 2025-06-03 15:39:10 +02:00 committed by Qt Cherry-pick Bot
parent bae157261b
commit 299000fa42

View File

@ -2333,7 +2333,7 @@ void QFileDialog::getOpenFileContent(const QString &nameFilter, const std::funct
};
connect(dialog, &QFileDialog::fileSelected, dialog, fileSelected);
dialog->show();
dialog->open();
#endif
}
@ -2376,7 +2376,7 @@ void QFileDialog::saveFileContent(const QByteArray &fileContent, const QString &
connect(dialog, &QFileDialog::fileSelected, dialog, fileSelected);
dialog->setAttribute(Qt::WA_DeleteOnClose);
dialog->show();
dialog->open();
#endif
}