QFileDialog::filters() is obsolete in Qt4. Replace it with nameFilters().
This change is Qt4/Qt5 neutral.
This commit is contained in:
parent
3bbddc8675
commit
5be2986146
|
@ -396,7 +396,7 @@ void FileOptionsDialog::accept()
|
|||
QFileInfo fi(fn);
|
||||
QString ext = fi.suffix();
|
||||
ext.prepend(QLatin1String("*."));
|
||||
QStringList filters = this->filters();
|
||||
QStringList filters = this->nameFilters();
|
||||
bool ok=false;
|
||||
// Compare the given suffix with the suffixes of all filters
|
||||
QString filter;
|
||||
|
|
Loading…
Reference in New Issue
Block a user