diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2022-08-23 16:51:07 +0800 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-08-25 05:44:33 +0000 |
commit | 5486f898c5c628b867a22aab5b005068bb17768b (patch) | |
tree | 0713bc94ab79b1971d0363feb7414040dc554577 /examples | |
parent | 519e28fd7b64eeebca7c3b9e2c8eec2b482f7886 (diff) |
texteditor: fix out-dated code snippet
The property should be selectedFile, not file.
Change-Id: I3ce399a7df2d80d122058c411b9b1a633f04fc64
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
(cherry picked from commit 2f67fdb949600bc542e69a89b3a70cfe3e9996c6)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/quickcontrols2/texteditor/qml/texteditor.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quickcontrols2/texteditor/qml/texteditor.qml b/examples/quickcontrols2/texteditor/qml/texteditor.qml index 205dde520e..0824b6c7b4 100644 --- a/examples/quickcontrols2/texteditor/qml/texteditor.qml +++ b/examples/quickcontrols2/texteditor/qml/texteditor.qml @@ -153,7 +153,7 @@ ApplicationWindow { selectedNameFilter.index: 1 nameFilters: ["Text files (*.txt)", "HTML files (*.html *.htm)", "Markdown files (*.md *.markdown)"] currentFolder: StandardPaths.writableLocation(StandardPaths.DocumentsLocation) - onAccepted: document.load(file) + onAccepted: document.load(selectedFile) } FileDialog { |