summaryrefslogtreecommitdiffstats
path: root/src/widgets/dialogs
diff options
context:
space:
mode:
authorAssam Boudjelthia <assam.boudjelthia@qt.io>2020-05-05 15:24:57 +0300
committerAssam Boudjelthia <assam.boudjelthia@qt.io>2020-05-12 13:59:56 +0300
commit8191472bc806280a02088f1e662c200b17dd8645 (patch)
tree25715abcc64f364d75746983787eae7ef5d94ab2 /src/widgets/dialogs
parent538223d10d133d23133db1ec7a50cb2775aca657 (diff)
Revert "note QFileDialog::setNameFilters() is not supported on Android"
This reverts commit 9802b93cc76de8a033a9806383c1631f36225931. The commit dbaf62033af3fdd7998c108246d0d96416595605 allows using nameFilters on Android platforms. Task-number: QTBUG-83089 Change-Id: I7b57cd0423c41e7527ce7a650626b602ea9b587d Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
Diffstat (limited to 'src/widgets/dialogs')
-rw-r--r--src/widgets/dialogs/qfiledialog.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/widgets/dialogs/qfiledialog.cpp b/src/widgets/dialogs/qfiledialog.cpp
index b406333fef..625bff5285 100644
--- a/src/widgets/dialogs/qfiledialog.cpp
+++ b/src/widgets/dialogs/qfiledialog.cpp
@@ -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)
{