Revert "note QFileDialog::setNameFilters() is not supported on Android"

This reverts commit 9802b93cc7.

The commit dbaf62033a allows using
nameFilters on Android platforms.

Task-number: QTBUG-83089
Change-Id: I7b57cd0423c41e7527ce7a650626b602ea9b587d
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
This commit is contained in:
Assam Boudjelthia 2020-05-05 15:24:57 +03:00
parent 538223d10d
commit 8191472bc8

View File

@ -1370,8 +1370,8 @@ QStringList qt_make_filter_list(const QString &filter)
\snippet code/src_gui_dialogs_qfiledialog.cpp 6
\note This is not supported on Android's native file dialog. Use
\l{setMimeTypeFilters()} instead.
\note With Android's native file dialog, the mime type matching the given
name filter is used because only mime types are supported.
\sa setMimeTypeFilters(), setNameFilters()
*/
@ -1444,9 +1444,6 @@ QStringList qt_strip_filters(const QStringList &filters)
filters for each file type. For example, JPEG images have three possible
extensions; if your application can open such files, selecting the
\c image/jpeg mime type as a filter will allow you to open all of them.
\note This is not supported on Android's native file dialog. Use
\l{setMimeTypeFilters()} instead.
*/
void QFileDialog::setNameFilters(const QStringList &filters)
{