From 2930c02fdcaecb6e1fbbdb09eb31d66f7d208dde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Fri, 30 Sep 2022 09:54:43 +0800 Subject: Mouse areas for grid card --- GridCardItem.ui.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/GridCardItem.ui.qml b/GridCardItem.ui.qml index 2b4596e..c41477f 100644 --- a/GridCardItem.ui.qml +++ b/GridCardItem.ui.qml @@ -14,6 +14,8 @@ Item { property color badgeColor: "#ff0cbc87" property color badgeBackgroundColor: "#1a0cbc87" property string titleText: "Sketch from A to Z: for app designer" + property alias imageArea: imageArea + property alias titleArea: titleArea // property string textTruncateText: "Rooms oh fully taken by worse do. Points afraid but may end afraid but.." DropShadow { @@ -51,6 +53,11 @@ Item { radius: 10 } } + + MouseArea { + id: imageArea + anchors.fill: parent + } } Item { @@ -140,6 +147,11 @@ Item { right: parent.right rightMargin: 20 } + + MouseArea { + id: titleArea + anchors.fill: parent + } } /* Label { -- cgit v1.2.3