summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-09-29 23:57:08 +0700
committerAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-09-29 23:57:08 +0700
commita78618b78bc41e2bf0789a96187a37d8cc240853 (patch)
tree1c21189253936d063fe3635320c3cdbbbc53aeb2 /features
parentfc5f8142395d77e508009bc6d9bcf48ff3217f91 (diff)
changed `TaskHistoryForm` layout
Diffstat (limited to 'features')
-rw-r--r--features/TaskHistoryForm.ui.qml53
1 files changed, 40 insertions, 13 deletions
diff --git a/features/TaskHistoryForm.ui.qml b/features/TaskHistoryForm.ui.qml
index 9164f3b..4b207de 100644
--- a/features/TaskHistoryForm.ui.qml
+++ b/features/TaskHistoryForm.ui.qml
@@ -5,41 +5,68 @@ import QtQuick.Layouts 1.12
Page {
id: page
- height: ticketHistoryText.height + 16
background: Rectangle {
color: "#eeeeee"
}
-
- property alias historyCreator: historyCreator
- property alias ticketHistoryText: ticketHistoryText
- property alias historyTimestamp: historyTimestamp
+ height: ticketDescriptionLayout.height + ticketDateLayout.height
+ property alias creator: creator
+ property alias ticketDescription: ticketDescription
+ property alias ticketDate: ticketDate
RowLayout {
- anchors.fill: parent
+ id: ticketDescriptionLayout
+ anchors.top: parent.top
+ anchors.topMargin: 0
+ anchors.right: parent.right
+ anchors.rightMargin: 0
+ anchors.left: parent.left
+ anchors.leftMargin: 0
spacing: 8
Text {
- id: historyCreator
+ id: creator
text: qsTr("Username")
+ Layout.bottomMargin: 8
+ Layout.topMargin: 8
font.weight: Font.Medium
font.pixelSize: 14
font.family: "Work Sans"
Layout.leftMargin: 16
- width: historyCreator.width
}
Text {
- id: ticketHistoryText
+ id: ticketDescription
text: qsTr("Edit or Commented")
+ Layout.bottomMargin: 8
+ Layout.topMargin: 8
+ Layout.fillWidth: true
font.pixelSize: 14
font.family: "Work Sans"
- width: ticketHistoryText.width
+ width: ticketDescription.width
+ color: "#000000"
}
+ }
+ RowLayout {
+ id: ticketDateLayout
+ anchors.right: parent.right
+ anchors.rightMargin: 0
+ anchors.left: parent.left
+ anchors.leftMargin: 0
+ anchors.top: ticketDescriptionLayout.bottom
+ anchors.topMargin: 0
+ spacing: 8
Text {
- id: historyTimestamp
+ id: ticketDate
text: qsTr("2017-07-25 15:05:30")
+ Layout.bottomMargin: 8
+ Layout.topMargin: 8
+ Layout.fillWidth: true
+ Layout.leftMargin: 16
Layout.rightMargin: 16
- font.pixelSize: 14
+ font.pixelSize: 12
font.family: "Work Sans"
- width: historyTimestamp.width
+ color: "#8a000000"
}
}
}
+
+
+