using native file dialog if possible
This commit is contained in:
parent
8d3bb73a6c
commit
3cbcb92937
4 changed files with 4 additions and 4 deletions
|
@ -39,7 +39,7 @@ fileDialogPreSave:
|
||||||
fileDialog.setFileMode(QFileDialog::AnyFile);
|
fileDialog.setFileMode(QFileDialog::AnyFile);
|
||||||
fileDialog.setViewMode(QFileDialog::Detail);
|
fileDialog.setViewMode(QFileDialog::Detail);
|
||||||
fileDialog.setAcceptMode(QFileDialog::AcceptSave);
|
fileDialog.setAcceptMode(QFileDialog::AcceptSave);
|
||||||
fileDialog.setOption(QFileDialog::DontUseNativeDialog, true);
|
fileDialog.setOption(QFileDialog::DontUseNativeDialog, false);
|
||||||
fileDialog.setOption(QFileDialog::DontConfirmOverwrite, true);
|
fileDialog.setOption(QFileDialog::DontConfirmOverwrite, true);
|
||||||
fileDialog.setDefaultSuffix("");
|
fileDialog.setDefaultSuffix("");
|
||||||
fileDialog.setWindowFlags(fileDialog.windowFlags()^Qt::WindowContextHelpButtonHint);
|
fileDialog.setWindowFlags(fileDialog.windowFlags()^Qt::WindowContextHelpButtonHint);
|
||||||
|
|
|
@ -39,7 +39,7 @@ fileDialogPreSave:
|
||||||
fileDialog.setFileMode(QFileDialog::AnyFile);
|
fileDialog.setFileMode(QFileDialog::AnyFile);
|
||||||
fileDialog.setViewMode(QFileDialog::Detail);
|
fileDialog.setViewMode(QFileDialog::Detail);
|
||||||
fileDialog.setAcceptMode(QFileDialog::AcceptSave);
|
fileDialog.setAcceptMode(QFileDialog::AcceptSave);
|
||||||
fileDialog.setOption(QFileDialog::DontUseNativeDialog, true);
|
fileDialog.setOption(QFileDialog::DontUseNativeDialog, false);
|
||||||
fileDialog.setOption(QFileDialog::DontConfirmOverwrite, true);
|
fileDialog.setOption(QFileDialog::DontConfirmOverwrite, true);
|
||||||
fileDialog.setDefaultSuffix("suffix");
|
fileDialog.setDefaultSuffix("suffix");
|
||||||
fileDialog.setWindowFlags(fileDialog.windowFlags()^Qt::WindowContextHelpButtonHint);
|
fileDialog.setWindowFlags(fileDialog.windowFlags()^Qt::WindowContextHelpButtonHint);
|
||||||
|
|
|
@ -348,7 +348,7 @@ fileDialogPreOpen:
|
||||||
fileDialog.setFileMode(QFileDialog::ExistingFiles);
|
fileDialog.setFileMode(QFileDialog::ExistingFiles);
|
||||||
fileDialog.setViewMode(QFileDialog::Detail);
|
fileDialog.setViewMode(QFileDialog::Detail);
|
||||||
fileDialog.setAcceptMode(QFileDialog::AcceptOpen);
|
fileDialog.setAcceptMode(QFileDialog::AcceptOpen);
|
||||||
fileDialog.setOption(QFileDialog::DontUseNativeDialog, true);
|
fileDialog.setOption(QFileDialog::DontUseNativeDialog, false);
|
||||||
fileDialog.setWindowFlags(fileDialog.windowFlags()^Qt::WindowContextHelpButtonHint);
|
fileDialog.setWindowFlags(fileDialog.windowFlags()^Qt::WindowContextHelpButtonHint);
|
||||||
fileDialog.setWindowTitle(tr("Import..."));
|
fileDialog.setWindowTitle(tr("Import..."));
|
||||||
fileDialog.setLabelText(QFileDialog::Accept, tr("Import"));
|
fileDialog.setLabelText(QFileDialog::Accept, tr("Import"));
|
||||||
|
|
|
@ -40,7 +40,7 @@ fileDialogPreSave:
|
||||||
fileDialog.setFileMode(QFileDialog::AnyFile);
|
fileDialog.setFileMode(QFileDialog::AnyFile);
|
||||||
fileDialog.setViewMode(QFileDialog::Detail);
|
fileDialog.setViewMode(QFileDialog::Detail);
|
||||||
fileDialog.setAcceptMode(QFileDialog::AcceptSave);
|
fileDialog.setAcceptMode(QFileDialog::AcceptSave);
|
||||||
fileDialog.setOption(QFileDialog::DontUseNativeDialog, true);
|
fileDialog.setOption(QFileDialog::DontUseNativeDialog, false);
|
||||||
fileDialog.setOption(QFileDialog::DontConfirmOverwrite, true);
|
fileDialog.setOption(QFileDialog::DontConfirmOverwrite, true);
|
||||||
fileDialog.setDefaultSuffix("");
|
fileDialog.setDefaultSuffix("");
|
||||||
fileDialog.setWindowFlags(fileDialog.windowFlags()^Qt::WindowContextHelpButtonHint);
|
fileDialog.setWindowFlags(fileDialog.windowFlags()^Qt::WindowContextHelpButtonHint);
|
||||||
|
|
Loading…
Reference in a new issue