|
|
|
@ -223,8 +223,7 @@ void copyEntryData(QAbstractItemView *view, int column, int role)
@@ -223,8 +223,7 @@ void copyEntryData(QAbstractItemView *view, int column, int role)
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QString getSaveFileName(QWidget *parent, const QString &caption, |
|
|
|
|
const QString &dir, |
|
|
|
|
QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir, |
|
|
|
|
const QString &filter, |
|
|
|
|
QString *selectedSuffixOut) |
|
|
|
|
{ |
|
|
|
@ -242,7 +241,8 @@ QString getSaveFileName(QWidget *parent, const QString &caption,
@@ -242,7 +241,8 @@ QString getSaveFileName(QWidget *parent, const QString &caption,
|
|
|
|
|
{ |
|
|
|
|
myDir = dir; |
|
|
|
|
} |
|
|
|
|
QString result = QFileDialog::getSaveFileName(parent, caption, myDir, filter, &selectedFilter); |
|
|
|
|
/* Directly convert path to native OS path separators */ |
|
|
|
|
QString result = QDir::toNativeSeparators(QFileDialog::getSaveFileName(parent, caption, myDir, filter, &selectedFilter)); |
|
|
|
|
|
|
|
|
|
/* Extract first suffix from filter pattern "Description (*.foo)" or "Description (*.foo *.bar ...) */ |
|
|
|
|
QRegExp filter_re(".* \\(\\*\\.(.*)[ \\)]"); |
|
|
|
|