diff options
author | Marko Kangas <marko.kangas@theqtcompany.com> | 2015-04-01 12:55:01 +0300 |
---|---|---|
committer | Marko Kangas <marko.kangas@theqtcompany.com> | 2015-04-01 10:30:24 +0000 |
commit | c1cfbd14438a77e5b4463e15976d9001d4116745 (patch) | |
tree | acf1520717691ea6f35e1e7ddc7349b0b39a20d0 /src/quick/items | |
parent | 810b6a5cd420ccaf99cecfe43c8751344f864280 (diff) |
Fix Text item linkColor update
Changed linkColor to update node correctly when link color is changed.
Change-Id: I056811053e2287c93ba9c0afb5ceddef939f46ce
Task-number: QTBUG-45356
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Diffstat (limited to 'src/quick/items')
-rw-r--r-- | src/quick/items/qquicktext.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/quick/items/qquicktext.cpp b/src/quick/items/qquicktext.cpp index 339a757196..c1794697a5 100644 --- a/src/quick/items/qquicktext.cpp +++ b/src/quick/items/qquicktext.cpp @@ -1584,7 +1584,10 @@ void QQuickText::setLinkColor(const QColor &color) return; d->linkColor = rgb; - update(); + if (isComponentComplete()) { + d->updateType = QQuickTextPrivate::UpdatePaintNode; + update(); + } emit linkColorChanged(); } |