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 Pick-to: 6.9 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>
This commit is contained in:
parent
4c47bbc805
commit
e7a9bb77fe
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user