Added all non-compressed useable file types to the open ROM file dialog filters for Qt GUI.
This commit is contained in:
parent
4c4d1f9ce3
commit
c01d4e8621
|
@ -712,9 +712,18 @@ void consoleWin_t::openROMFile(void)
|
||||||
char dir[512];
|
char dir[512];
|
||||||
QFileDialog dialog(this, tr("Open ROM File") );
|
QFileDialog dialog(this, tr("Open ROM File") );
|
||||||
|
|
||||||
|
const QStringList filters(
|
||||||
|
{ "All Useable files (*.nes *.NES *.nsf *.NSF *.fds *.FDS *.unf *.UNF *.unif *.UNIF)",
|
||||||
|
"NES files (*.nes *.NES)",
|
||||||
|
"NSF files (*.nsf *.NSF)",
|
||||||
|
"UNF files (*.unf *.UNF *.unif *.UNIF)",
|
||||||
|
"FDS files (*.fds *.FDS)",
|
||||||
|
"Any files (*)"
|
||||||
|
});
|
||||||
|
|
||||||
dialog.setFileMode(QFileDialog::ExistingFile);
|
dialog.setFileMode(QFileDialog::ExistingFile);
|
||||||
|
|
||||||
dialog.setNameFilter(tr("NES files (*.nes *.NES) ;; All files (*)"));
|
dialog.setNameFilters( filters );
|
||||||
|
|
||||||
dialog.setViewMode(QFileDialog::List);
|
dialog.setViewMode(QFileDialog::List);
|
||||||
dialog.setFilter( QDir::AllEntries | QDir::AllDirs | QDir::Hidden );
|
dialog.setFilter( QDir::AllEntries | QDir::AllDirs | QDir::Hidden );
|
||||||
|
|
Loading…
Reference in New Issue