diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-08-27 20:46:09 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-08-27 20:53:00 +0200 |
commit | df946a834f6c7d7b9513fb71dc2a93ff148d5a1f (patch) | |
tree | 215ffb3e3716db58360bcc1b09f36f49d5d2bf00 /src/imports/platform/qquickplatformfiledialog.cpp | |
parent | 2568869819863de6b1f303dfe470aedf38b841c3 (diff) | |
parent | 67f67f2cc6de160ddea4aa76afc56e86415ed99b (diff) |
Merge remote-tracking branch 'origin/5.8' into dev
Change-Id: I10fadb2673912436340b485d8a738e1ae65d629e
Diffstat (limited to 'src/imports/platform/qquickplatformfiledialog.cpp')
-rw-r--r-- | src/imports/platform/qquickplatformfiledialog.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/imports/platform/qquickplatformfiledialog.cpp b/src/imports/platform/qquickplatformfiledialog.cpp index 53f91b4c..6174fd99 100644 --- a/src/imports/platform/qquickplatformfiledialog.cpp +++ b/src/imports/platform/qquickplatformfiledialog.cpp @@ -308,6 +308,12 @@ void QQuickPlatformFileDialog::resetOptions() This property holds the filters that restrict the types of files that can be selected. + \code + FileDialog { + nameFilters: ["Text files (*.txt)", "HTML files (*.html *.htm)"] + } + \endcode + \note \b{*.*} is not a portable filter, because the historical assumption that the file extension determines the file type is not consistent on every operating system. It is possible to have a file with no dot in its name (for |