aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/platform/qquickplatformfiledialog.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-08-27 20:46:09 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-08-27 20:53:00 +0200
commitdf946a834f6c7d7b9513fb71dc2a93ff148d5a1f (patch)
tree215ffb3e3716db58360bcc1b09f36f49d5d2bf00 /src/imports/platform/qquickplatformfiledialog.cpp
parent2568869819863de6b1f303dfe470aedf38b841c3 (diff)
parent67f67f2cc6de160ddea4aa76afc56e86415ed99b (diff)
Merge remote-tracking branch 'origin/5.8' into dev
Diffstat (limited to 'src/imports/platform/qquickplatformfiledialog.cpp')
-rw-r--r--src/imports/platform/qquickplatformfiledialog.cpp6
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