summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-09-29 21:49:49 +0700
committerAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-09-29 21:49:49 +0700
commita874ba32e2faed5e7b720b6cdba7e98d3d8f41a3 (patch)
treeaae8bba9d4db3c9b780d37990507d0e964c50e1b
parent27b2be77d5d7c53a23bfbec57807b2669dc1c163 (diff)
declare `property alias`
-rw-r--r--features/TaskBriefForm.ui.qml10
-rw-r--r--features/TaskHistoryForm.ui.qml5
2 files changed, 13 insertions, 2 deletions
diff --git a/features/TaskBriefForm.ui.qml b/features/TaskBriefForm.ui.qml
index b845f5d..24de122 100644
--- a/features/TaskBriefForm.ui.qml
+++ b/features/TaskBriefForm.ui.qml
@@ -6,6 +6,12 @@ import QtQuick.Layouts 1.12
Page {
id: taskBriefComponents
height: ticketSubjectLayout.height + ticketMetaLayout.height
+ property alias ticketSubject: ticketSubject
+ property alias userAvatar: userAvatar
+ property alias ticketCreator: ticketCreator
+ property alias ticketCreatedText: ticketCreatedText
+ property alias ticketCreatedTimestamp: ticketCreatedTimestamp
+
RowLayout {
id: ticketSubjectLayout
height: ticketSubject.height + 32
@@ -64,10 +70,10 @@ Page {
width: ticketCreatedText.width
}
Text {
- id: ticketCreated
+ id: ticketCreatedTimestamp
text: qsTr("2017-07-25 14:05:30")
Layout.rightMargin: 16
- width: ticketCreated.width
+ width: ticketCreatedTimestamp.width
}
}
}
diff --git a/features/TaskHistoryForm.ui.qml b/features/TaskHistoryForm.ui.qml
index 00b0d82..768f3f0 100644
--- a/features/TaskHistoryForm.ui.qml
+++ b/features/TaskHistoryForm.ui.qml
@@ -9,6 +9,11 @@ Page {
background: Rectangle {
color: "#eeeeee"
}
+
+ property alias historyCreator: historyCreator
+ property alias ticketHistoryText: ticketHistoryText
+ property alias historyTimeStamp: historyTimeStamp
+
RowLayout {
anchors.fill: parent
spacing: 8