summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Erb <erb@suitabletech.com>2014-05-12 11:02:14 -0400
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-15 23:28:03 +0200
commit9e9b72ffe8c8c5bebe3ff70c467238ad13d00c6a (patch)
tree182773d2697fa6c1a43e6a1463ac37090248485b
parent09c4c95cf067a7a2a6abf97b60427ae8f7df6bdd (diff)
downloadqtquickcontrols-9e9b72ffe8c8c5bebe3ff70c467238ad13d00c6a.tar.gz
Fixed QML binding loop warning.
Change-Id: I1339949afa6aeb659baf7186cbcb7a714d9826a3 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
-rw-r--r--src/controls/TextArea.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/controls/TextArea.qml b/src/controls/TextArea.qml
index 4b22dded..8cf02857 100644
--- a/src/controls/TextArea.qml
+++ b/src/controls/TextArea.qml
@@ -710,7 +710,12 @@ ScrollView {
onWrapModeChanged: edit.doLayout()
renderType: __style ? __style.renderType : Text.NativeRendering
- font: __style ? __style.font : font
+ Binding {
+ target: edit
+ property: 'font'
+ value: __style.font
+ when: __style
+ }
color: __style ? __style.textColor : "darkgray"
selectionColor: __style ? __style.selectionColor : "darkred"
selectedTextColor: __style ? __style.selectedTextColor : "white"