summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/quick/controls/texteditor/qml/main.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/controls/texteditor/qml/main.qml b/examples/quick/controls/texteditor/qml/main.qml
index cefbf4349..42f5e7f94 100644
--- a/examples/quick/controls/texteditor/qml/main.qml
+++ b/examples/quick/controls/texteditor/qml/main.qml
@@ -169,7 +169,6 @@ ApplicationWindow {
ColorDialog {
id: colorDialog
color: "black"
- onAccepted: document.textColor = color
}
Action {
@@ -333,6 +332,7 @@ ApplicationWindow {
cursorPosition: textArea.cursorPosition
selectionStart: textArea.selectionStart
selectionEnd: textArea.selectionEnd
+ textColor: colorDialog.color
Component.onCompleted: document.fileUrl = "qrc:/example.html"
onFontSizeChanged: {
fontSizeSpinBox.valueGuard = false