From f3571973017ac8c0b4bc42d3b16dde771f0d361d Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Fri, 20 Sep 2019 16:37:34 +0700 Subject: add `title` and `edit` --- Profile.qml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'Profile.qml') diff --git a/Profile.qml b/Profile.qml index 381f486..1011a51 100644 --- a/Profile.qml +++ b/Profile.qml @@ -21,8 +21,36 @@ Page { pageView.pop() } } + Label { + text: contentView.currentItem.title + Layout.leftMargin: 16 + verticalAlignment: Text.AlignVCenter + horizontalAlignment: Text.AlignLeft + wrapMode: Text.WordWrap + font.family: "Work Sans" + font.weight: Font.Medium + font.pointSize: 20 + color: "#000000" + Layout.fillWidth: true + } + ToolButton { + text: qsTr("Edit") + font.weight: Font.Medium + display: AbstractButton.TextOnly + font.family: "Work Sans" + font.capitalization: Font.MixedCase + flat: false + highlighted: true + Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter + + } } } + StackView { + id: contentView + anchors.fill: parent + initialItem: ProfileForm {} + } } /*##^## -- cgit v1.2.3