| 84 | } |
| 85 | |
| 86 | QString FileDialogHelpers::getSaveFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedFilter, QFileDialog::Options options) |
| 87 | { |
| 88 | const QStringList schemes = QStringList(QStringLiteral("file")); |
| 89 | const QUrl selectedUrl = getSaveFileUrl(parent, caption, dir, filter, selectedFilter, options, schemes); |
| 90 | if (selectedUrl.isLocalFile() || selectedUrl.isEmpty()) |
| 91 | return selectedUrl.toLocalFile(); |
| 92 | else |
| 93 | return selectedUrl.toString(); |
| 94 | } |