From 51192e8ef5d9ab385de390b38409b73a56f55f84 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Sat, 13 Aug 2016 22:25:39 +0200 Subject: 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 --- examples/quickcontrols2/texteditor/qml/texteditor.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') 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 { -- cgit v1.2.3