diff options
Diffstat (limited to 'examples/quickcontrols2/texteditor/qml/texteditor.qml')
-rw-r--r-- | examples/quickcontrols2/texteditor/qml/texteditor.qml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/quickcontrols2/texteditor/qml/texteditor.qml b/examples/quickcontrols2/texteditor/qml/texteditor.qml index 5feae894..8cc33c6d 100644 --- a/examples/quickcontrols2/texteditor/qml/texteditor.qml +++ b/examples/quickcontrols2/texteditor/qml/texteditor.qml @@ -164,6 +164,7 @@ ApplicationWindow { fileMode: FileDialog.OpenFile selectedNameFilter: nameFilters[1] nameFilters: ["Text files (*.txt)", "HTML files (*.html *.htm)"] + folder: StandardPaths.writableLocation(StandardPaths.DocumentsLocation) onAccepted: document.load(file) } @@ -173,6 +174,7 @@ ApplicationWindow { defaultSuffix: document.fileType nameFilters: openDialog.nameFilters selectedNameFilter: document.fileType === "txt" ? nameFilters[0] : nameFilters[1] + folder: StandardPaths.writableLocation(StandardPaths.DocumentsLocation) onAccepted: document.saveAs(file) } |