diff options
| -rw-r--r-- | components/IText.qml | 21 | ||||
| -rw-r--r-- | components/ITextEdit.qml | 21 |
2 files changed, 26 insertions, 16 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(); - } - } } diff --git a/components/ITextEdit.qml b/components/ITextEdit.qml index 91b4a74..f05c8c7 100644 --- a/components/ITextEdit.qml +++ b/components/ITextEdit.qml @@ -25,6 +25,19 @@ TextEdit { 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 @@ -41,12 +54,4 @@ TextEdit { easing.type: Easing.BezierSpline } - onTextChanged: { - if (animate) { - root.scale = animateFrom; - scaleAnim.to = animateTo; - scaleAnim.easing.bezierCurve = Style.anim.curves.standardAccel; - scaleAnim.start(); - } - } } |
