diff options
Diffstat (limited to 'components/IText.qml')
| -rw-r--r-- | components/IText.qml | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/components/IText.qml b/components/IText.qml index 2b92be4..8510de0 100644 --- a/components/IText.qml +++ b/components/IText.qml @@ -26,6 +26,19 @@ Text { pixelSize: fontSize } + onTextChanged: { + if (animate) { + root.scale = animateFrom; + scaleAnim.to = animateTo; + scaleAnim.easing.bezierCurve = Style.anim.curves.standardAccel; + scaleAnim.start(); + } + } + + onLinkActivated: (link) => { + Qt.openUrlExternally(link) + } + Behavior on color { ColorAnimation { duration: Style.anim.durations.normal @@ -42,12 +55,4 @@ Text { easing.type: Easing.BezierSpline } - onTextChanged: { - if (animate) { - root.scale = animateFrom; - scaleAnim.to = animateTo; - scaleAnim.easing.bezierCurve = Style.anim.curves.standardAccel; - scaleAnim.start(); - } - } } |
