summaryrefslogtreecommitdiffstats
path: root/src/dialogs/qquickplatformfiledialog.cpp
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2017-06-01 19:59:58 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2017-09-17 17:00:56 +0000
commitc7a43a5d3d34ff0d7f1f8d88750643ffa8195efb (patch)
tree493b79b889ea5b23d9b9bf4129156db2e1747ad8 /src/dialogs/qquickplatformfiledialog.cpp
parent67906d61c6f786dbbced67becc25e1a396f3183c (diff)
Add support for the defaultSuffix property in FileDialog
[ChangeLog][FileDialog] Added defaultSuffix property Task-number: QTBUG-39230 Change-Id: I7dc73c332ad62129d7158b6f6f5a614b8582ffbc Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/dialogs/qquickplatformfiledialog.cpp')
-rw-r--r--src/dialogs/qquickplatformfiledialog.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/dialogs/qquickplatformfiledialog.cpp b/src/dialogs/qquickplatformfiledialog.cpp
index ab228d1f4..b30f2b2bc 100644
--- a/src/dialogs/qquickplatformfiledialog.cpp
+++ b/src/dialogs/qquickplatformfiledialog.cpp
@@ -422,4 +422,18 @@ void QQuickPlatformFileDialog::accept()
\l {Qt.labs.settings}{Settings}.
*/
+/*!
+ \qmlproperty string FileDialog::defaultSuffix
+ \since 5.10
+
+ This property holds the suffix added to the filename if no other suffix was
+ specified.
+
+ This property specifies a string that will be added to the filename if it
+ has no suffix already. The suffix is typically used to indicate the file
+ type (e.g. "txt" indicates a text file).
+
+ If the first character is a dot ('.'), it is removed.
+*/
+
QT_END_NAMESPACE