From ff75e862e5a614db1e2ab8e26fd69e8e5ddca073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tinkl?= Date: Tue, 21 Feb 2023 11:52:11 +0100 Subject: [PATCH] fix(StatusLinkText): no duplicate import - do not shadow/redefine builtin property `linkColor` - minor typo fixes --- ui/StatusQ/src/StatusQ/Controls/StatusLinkText.qml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/ui/StatusQ/src/StatusQ/Controls/StatusLinkText.qml b/ui/StatusQ/src/StatusQ/Controls/StatusLinkText.qml index 27dc0541a3..961560ece3 100644 --- a/ui/StatusQ/src/StatusQ/Controls/StatusLinkText.qml +++ b/ui/StatusQ/src/StatusQ/Controls/StatusLinkText.qml @@ -1,23 +1,21 @@ import StatusQ.Core 0.1 import StatusQ.Core.Theme 0.1 -import QtQuick 2.0 -import QtQuick.Layouts 1.0 +import QtQuick 2.14 -import StatusQ.Core 0.1 /*! \qmltype StatusLinkText \inherits StatusBaseText \inqmlmodule StatusQ.Controls \since StatusQ.Controls 0.1 - \brief Displays text abailable for mouse interaction and styled as link. + \brief Displays text available for mouse interaction and styled as link. Example of how to use it: \qml StatusLinkText { text: qsTr("Click me") - onClicked: console,log("link clicked") + onClicked: console.log("link clicked") } \endqml @@ -31,7 +29,7 @@ StatusBaseText { \qmlproperty StatusLinkText StatusLinkText::linkColor This property holds text color while it's hovered by mouse cursor */ - property color linkColor: Theme.palette.primaryColor1 + linkColor: Theme.palette.primaryColor1 /*! \qmlproperty StatusLinkText StatusLinkText::normalColor @@ -41,7 +39,7 @@ StatusBaseText { /*! \qmlproperty StatusLinkText StatusLinkText::containsMouse - This property true whenever text is hoverd by mouse cursor + This property true whenever text is hovered by mouse cursor */ readonly property alias containsMouse: textMouseArea.containsMouse @@ -61,4 +59,4 @@ StatusBaseText { cursorShape: Qt.PointingHandCursor onClicked: root.clicked() } -} \ No newline at end of file +}