aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/texteditor/qml/texteditor.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quickcontrols2/texteditor/qml/texteditor.qml')
-rw-r--r--examples/quickcontrols2/texteditor/qml/texteditor.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quickcontrols2/texteditor/qml/texteditor.qml b/examples/quickcontrols2/texteditor/qml/texteditor.qml
index 1188686b5f..a24a174b14 100644
--- a/examples/quickcontrols2/texteditor/qml/texteditor.qml
+++ b/examples/quickcontrols2/texteditor/qml/texteditor.qml
@@ -169,9 +169,9 @@ ApplicationWindow {
FileDialog {
id: saveDialog
fileMode: FileDialog.SaveFile
+ defaultSuffix: "html"
nameFilters: openDialog.nameFilters
- // TODO: will eventually pass FileDialog's suffix property here
- onFileSelected: document.saveAs(file, "")
+ onFileSelected: document.saveAs(file)
}
FontDialog {