From a874ba32e2faed5e7b720b6cdba7e98d3d8f41a3 Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Sun, 29 Sep 2019 21:49:49 +0700 Subject: declare `property alias` --- features/TaskBriefForm.ui.qml | 10 ++++++++-- features/TaskHistoryForm.ui.qml | 5 +++++ 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'features') 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 -- cgit v1.2.3