summaryrefslogtreecommitdiff
path: root/TicketForm.ui.qml
diff options
context:
space:
mode:
Diffstat (limited to 'TicketForm.ui.qml')
-rw-r--r--TicketForm.ui.qml50
1 files changed, 50 insertions, 0 deletions
diff --git a/TicketForm.ui.qml b/TicketForm.ui.qml
new file mode 100644
index 0000000..dd3f6c1
--- /dev/null
+++ b/TicketForm.ui.qml
@@ -0,0 +1,50 @@
+import QtQuick 2.15
+import QtQuick.Controls 2.15
+
+Item {
+ property alias title: title
+ property alias delegate: delegate
+
+ width: 328
+ height: 64
+
+ FontLoader {
+ id: robotoMonoBold
+ source: "fonts/RobotoMono-Bold.ttf"
+ }
+
+ ItemDelegate {
+ id: delegate
+ anchors.fill: parent
+
+ 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
+ }
+
+ 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.bold: true
+ font.pixelSize: 16
+ font.letterSpacing: 0.15
+ }
+ }
+}