diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-08-13 13:40:36 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-08-14 09:25:52 +0000 |
commit | fb05eafac51a602c8c090c76584ece6b7da2034c (patch) | |
tree | 377384baa19b78c6cb6b9e59f6a859a66b231ae0 /examples | |
parent | 2e09e597ab3df5a13f89e945a0a90724d5c5a3f0 (diff) |
ColorDialog: replace colorSelected() with a declarative property
This is consistent with the QML ColorDialog from QtQuick Dialogs 1.
Change-Id: I4068a98156494eb36b2d9ecf4c1af90ad173bb97
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
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 db2a2afd..5239d8a2 100644 --- a/examples/quickcontrols2/texteditor/qml/texteditor.qml +++ b/examples/quickcontrols2/texteditor/qml/texteditor.qml @@ -359,7 +359,7 @@ ApplicationWindow { cursorPosition: textArea.cursorPosition selectionStart: textArea.selectionStart selectionEnd: textArea.selectionEnd - textColor: colorDialog.currentColor + textColor: colorDialog.color // TODO: if we don't do this, e.g. the bold button won't be checked // when it should be (the title is bold) Component.onCompleted: document.load("qrc:/texteditor.html") |