QFileDialog::filters() is obsolete in Qt4. Replace it with nameFilters().

This change is Qt4/Qt5 neutral.
This commit is contained in:
Mateusz Skowroński
2015-12-24 07:43:21 +01:00
parent fd15f66b4d
commit 984f4e335b

View File

@@ -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;