diff options
Diffstat (limited to 'components/ITextEdit.qml')
| -rw-r--r-- | components/ITextEdit.qml | 21 |
1 files changed, 13 insertions, 8 deletions
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(); - } - } } |
