Skip to content

Commit

Permalink
QFileDialg::setFilters() is obsolete in Qt4. Replace it with setNameF…
Browse files Browse the repository at this point in the history
…ilters().

This change is Qt4/Qt5 neutral.
  • Loading branch information
f3nix authored and wwmayer committed Aug 15, 2016
1 parent 8c6bede commit 7e01814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/TechDraw/Gui/MDIViewPage.cpp
Expand Up @@ -534,7 +534,7 @@ void MDIViewPage::printPdf()
dlg.setFileMode(QFileDialog::AnyFile);
dlg.setAcceptMode(QFileDialog::AcceptSave);
dlg.setWindowTitle(tr("Export PDF"));
dlg.setFilters(QStringList() << QString::fromLatin1("%1 (*.pdf)").arg(tr("PDF file")));
dlg.setNameFilters(QStringList() << QString::fromLatin1("%1 (*.pdf)").arg(tr("PDF file")));

QGridLayout *gridLayout;
QGridLayout *formLayout;
Expand Down

0 comments on commit 7e01814

Please sign in to comment.