diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-08-13 22:25:39 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-08-14 09:26:14 +0000 |
commit | 51192e8ef5d9ab385de390b38409b73a56f55f84 (patch) | |
tree | 97dd174137fcb23889d6cc8533a8aa9e51620f34 /examples | |
parent | 7b6180a2d6b5def11b95485a3323a37f92b57ba9 (diff) |
FileDialog: replace file(s)Selected() with declarative properties
Follow the same convention that ColorDialog, FontDialog and FolderDialog.
Change-Id: I960d4fc1ba275ab997f2a079a799d2b90796eca3
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/quickcontrols2/texteditor/qml/texteditor.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quickcontrols2/texteditor/qml/texteditor.qml b/examples/quickcontrols2/texteditor/qml/texteditor.qml index f55405ff..7d92bea9 100644 --- a/examples/quickcontrols2/texteditor/qml/texteditor.qml +++ b/examples/quickcontrols2/texteditor/qml/texteditor.qml @@ -162,7 +162,7 @@ ApplicationWindow { id: openDialog fileMode: FileDialog.OpenFile nameFilters: ["Text files (*.txt)", "HTML files (*.html *.htm)"] - onFileSelected: document.load(file) + onAccepted: document.load(file) } FileDialog { @@ -170,7 +170,7 @@ ApplicationWindow { fileMode: FileDialog.SaveFile defaultSuffix: document.fileType nameFilters: openDialog.nameFilters - onFileSelected: document.saveAs(file) + onAccepted: document.saveAs(file) } FontDialog { |