summaryrefslogtreecommitdiff
path: root/features/TaskBriefForm.ui.qml
blob: b845f5ded65f58aa0ac0fef5389d93ded7e88efc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Controls.Material 2.12
import QtQuick.Layouts 1.12

Page {
    id: taskBriefComponents
    height: ticketSubjectLayout.height + ticketMetaLayout.height
    RowLayout {
        id: ticketSubjectLayout
        height: ticketSubject.height + 32
        anchors.right: parent.right
        anchors.rightMargin: 0
        anchors.left: parent.left
        anchors.leftMargin: 0
        spacing: 8
        Label {
            id: ticketSubject
            text: qsTr("Ticket subject")
            Layout.rightMargin: 16
            Layout.fillWidth: true
            Layout.leftMargin: 16
            font.weight: Font.Medium
            font.family: "Work Sans"
            font.pixelSize: 20
        }
    }
    RowLayout {
        id: ticketMetaLayout
        anchors.top: ticketSubjectLayout.bottom
        anchors.topMargin: 0
        height: userAvatar.height + 16
        anchors.right: parent.right
        anchors.rightMargin: 0
        anchors.left: parent.left
        anchors.leftMargin: 0
        spacing: 8
        Rectangle {
            id: userAvatar
            height: 24
            width: 24
            radius: 8
            Layout.leftMargin: 16
            Image {
                anchors.fill: parent
                source: "https://via.placeholder.com/32x32.png"
                fillMode: Image.PreserveAspectFit
            }
        }

        Text {
            id: ticketCreator
            text: qsTr("Username")
            font.weight: Font.Medium
            width: ticketCreator.width
            font.family: "Work Sans"
            verticalAlignment: Text.AlignVCenter
            elide: Text.ElideRight
            font.pixelSize: 14
        }
        Text {
            id: ticketCreatedText
            text: qsTr("created this issue")
            width: ticketCreatedText.width
        }
        Text {
            id: ticketCreated
            text: qsTr("2017-07-25 14:05:30")
            Layout.rightMargin: 16
            width: ticketCreated.width
        }
    }
}