summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-01-25 11:12:28 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-01-25 11:12:28 +0800
commita00c1d53cc9460f3f50be7f8a1092b9350f6aea2 (patch)
treee2be0e4d183d8055eaeb04aaf6b73ec32b8fbe51
parent868a42a8ce2e2aa783c4fa7fbb50e7838ddb6e0d (diff)
Interface to ItemDelegate
so it can be clicked
-rw-r--r--components/ListItemSingleTextForm.ui.qml66
1 files changed, 36 insertions, 30 deletions
diff --git a/components/ListItemSingleTextForm.ui.qml b/components/ListItemSingleTextForm.ui.qml
index 7bcfe02..fcd6005 100644
--- a/components/ListItemSingleTextForm.ui.qml
+++ b/components/ListItemSingleTextForm.ui.qml
@@ -3,41 +3,47 @@ import QtQuick.Controls 2.15
Item {
property alias title: title
+ property alias delegate: delegate
width: 328
height: 64
- Image {
- id: image
- width: 32
- anchors.left: parent.left
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- anchors.leftMargin: 16
- anchors.topMargin: 16
- anchors.bottomMargin: 16
- fillMode: Image.PreserveAspectFit
- }
+ ItemDelegate {
+ id: delegate
+ anchors.fill: parent
- FontLoader {
- id: robotoMonoBold
- source: "../fonts/RobotoMono-Bold.ttf"
- }
+ Image {
+ id: image
+ width: 32
+ anchors.left: parent.left
+ anchors.top: parent.top
+ anchors.bottom: parent.bottom
+ anchors.leftMargin: 16
+ anchors.topMargin: 16
+ anchors.bottomMargin: 16
+ fillMode: Image.PreserveAspectFit
+ }
+
+ FontLoader {
+ id: robotoMonoBold
+ source: "../fonts/RobotoMono-Bold.ttf"
+ }
- Text {
- id: title
- width: 208
- text: qsTr("Project name")
- anchors.left: image.right
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- anchors.leftMargin: 16
- anchors.topMargin: 20
- anchors.bottomMargin: 20
- lineHeight: 24
- verticalAlignment: Text.AlignVCenter
- font.family: robotoMonoBold.name
- font.pixelSize: 16
- font.letterSpacing: 0.15
+ Text {
+ id: title
+ width: 208
+ text: qsTr("Project name")
+ anchors.left: image.right
+ anchors.top: parent.top
+ anchors.bottom: parent.bottom
+ anchors.leftMargin: 16
+ anchors.topMargin: 20
+ anchors.bottomMargin: 20
+ lineHeight: 24
+ verticalAlignment: Text.AlignVCenter
+ font.family: robotoMonoBold.name
+ font.pixelSize: 16
+ font.letterSpacing: 0.15
+ }
}
}