summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-05-08 13:22:15 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-05-08 13:22:15 +0800
commitc873d1e6eba863f4247690b335940b8b8bc103af (patch)
treed110942963d9a5270e4a03676c372789c91421c6
parent19fb8c7865e2e506f36ee26ffb254878d20f93dc (diff)
Card mouse areas
-rw-r--r--Card.ui.qml13
1 files changed, 12 insertions, 1 deletions
diff --git a/Card.ui.qml b/Card.ui.qml
index e793111..090b56d 100644
--- a/Card.ui.qml
+++ b/Card.ui.qml
@@ -7,7 +7,9 @@ import Bootstrap 5.3
Item {
property string imageSource:
"https://offsetcode.com/themes/messenger/2.2.0/assets/img/avatars/6.jpg"
+ property alias imageArea: imageArea
property string nameText: "Bill Marrow"
+ property alias nameArea: nameArea
property string statusText: qsTr("last seen 3 days ago")
implicitHeight: 88.5
@@ -39,8 +41,12 @@ Item {
radius: 22
}
}
- }
+ MouseArea {
+ id: imageArea
+ anchors.fill: parent
+ }
+ }
ColumnLayout {
spacing: 0
anchors {
@@ -53,6 +59,11 @@ Item {
text: nameText
wrapMode: Label.Wrap
Bootstrap.heading: 5
+
+ MouseArea {
+ id: nameArea
+ anchors.fill: parent
+ }
}
Label {