summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-09-20 16:37:34 +0700
committerAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-09-20 16:37:34 +0700
commitf3571973017ac8c0b4bc42d3b16dde771f0d361d (patch)
tree2db1be09d615fb0ca2fb3552482e5966b90dcbe4
parente97be359c0eb00f5e3f9ff3fe16ddd146572923b (diff)
add `title` and `edit`
-rw-r--r--Profile.qml28
1 files changed, 28 insertions, 0 deletions
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 {}
+ }
}
/*##^##