From e2ee423c25f302c7fdb0a0c05fa7e7677f9192d8 Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Thu, 3 Oct 2019 11:13:15 +0700 Subject: Move `ListView` inside `StackView` --- features/TaskDetailForm.ui.qml | 90 +++++++++++++++++++++--------------------- 1 file changed, 45 insertions(+), 45 deletions(-) (limited to 'features') diff --git a/features/TaskDetailForm.ui.qml b/features/TaskDetailForm.ui.qml index dc8b346..53fc6ed 100644 --- a/features/TaskDetailForm.ui.qml +++ b/features/TaskDetailForm.ui.qml @@ -18,7 +18,7 @@ Page { RowLayout { id: toolBar anchors.fill: parent - spacing: 0 + spacing: 8 ToolButton { id: backButton icon.name: "back-button" @@ -34,55 +34,55 @@ Page { } } } - StackView { - id: contentView - anchors.fill: parent - background: Rectangle { - color: "#FFFFFF" - } - - TaskBriefForm { - id: ticketBriefForm - anchors.top: parent.top - anchors.topMargin: 0 - anchors.right: parent.right - anchors.rightMargin: 0 - anchors.left: parent.left - anchors.leftMargin: 0 - } - - Label { - id: separator - color: "#000000" - text: qsTr("Activities") - font.weight: Font.Medium - font.pixelSize: 16 - font.family: "Work Sans" - anchors.left: parent.left - anchors.leftMargin: 16 - anchors.top: ticketBriefForm.bottom - anchors.topMargin: 8 - } - - ListView { - id: listView - width: parent.width - height: parent.height - anchors.topMargin: 8 - anchors.right: parent.right - anchors.rightMargin: 0 - anchors.left: parent.left - anchors.leftMargin: 0 - spacing: 8 + StackView { + id: contentView + anchors.fill: parent + background: Rectangle { + color: "#FFFFFF" + } - ScrollBar.vertical: ScrollBar {} - } - } + ListView { + id: listView + anchors.fill: parent + spacing: 8 + TaskBriefForm { + id: ticketBriefForm + anchors.top: parent.top + anchors.topMargin: 0 + anchors.right: parent.right + anchors.rightMargin: 0 + anchors.left: parent.left + anchors.leftMargin: 0 + } + RowLayout { + id: separator + height: separatorLabel.height + 32 + anchors.top: ticketBriefForm.bottom + anchors.topMargin: 0 + anchors.right: parent.right + anchors.rightMargin: 0 + anchors.left: parent.left + anchors.leftMargin: 0 + Label { + id: separatorLabel + height: 20 + color: "#000000" + text: qsTr("Activities") + Layout.leftMargin: 16 + verticalAlignment: Text.AlignVCenter + font.weight: Font.Medium + font.pixelSize: 16 + font.family: "Work Sans" + } + } + ScrollBar.vertical: ScrollBar {} + } + } } /*##^## Designer { - D{i:0;autoSize:true;height:480;width:640} + D{i:0;autoSize:true;height:480;width:640}D{i:8;anchors_height:432;anchors_width:640} } ##^##*/ -- cgit v1.2.3