aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/texteditor
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-08-13 13:58:28 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-08-14 09:26:00 +0000
commit877ac7226c8ae4ec9b8d1652a7da1f73d78bc5c7 (patch)
tree091e790e60fb5d4c02d3998bd23ae831eb412213 /examples/quickcontrols2/texteditor
parentfb05eafac51a602c8c090c76584ece6b7da2034c (diff)
FontDialog: replace fontSelected() with a declarative property
This is consistent with the QML FontDialog from QtQuick Dialogs 1. Change-Id: I14a5a313be5ba9a9e0fb1645fe272cf9c2cdd389 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'examples/quickcontrols2/texteditor')
-rw-r--r--examples/quickcontrols2/texteditor/qml/texteditor.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quickcontrols2/texteditor/qml/texteditor.qml b/examples/quickcontrols2/texteditor/qml/texteditor.qml
index 5239d8a2..f55405ff 100644
--- a/examples/quickcontrols2/texteditor/qml/texteditor.qml
+++ b/examples/quickcontrols2/texteditor/qml/texteditor.qml
@@ -175,7 +175,7 @@ ApplicationWindow {
FontDialog {
id: fontDialog
- onFontSelected: {
+ onAccepted: {
document.fontFamily = font.family;
document.fontSize = font.pointSize;
}