From af814b7312868cbfb54ebc994a7996c81d0f9670 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Wed, 25 Sep 2019 11:59:57 +0800 Subject: Profile edit components are copied but hidden --- features/ProfileForm.ui.qml | 55 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/features/ProfileForm.ui.qml b/features/ProfileForm.ui.qml index 452a895..6aa5d73 100644 --- a/features/ProfileForm.ui.qml +++ b/features/ProfileForm.ui.qml @@ -6,9 +6,13 @@ import QtQuick.Layouts 1.12 Page { property alias backButton: backButton property alias editToolButton: editToolButton + property alias saveProfileButton: saveProfileButton property alias fullnameLabel: fullnameLabel + property alias fullnameTextField: fullnameTextField property alias usernameLabel: usernameLabel + property alias usernameTextField: usernameTextField property alias userEmailLabel: userEmailLabel + property alias userEmailTextField: userEmailTextField header: ToolBar{ background: Rectangle { @@ -46,6 +50,21 @@ Page { highlighted: true Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter } + Button { + id: saveProfileButton + text: qsTr("Save") + leftPadding: 8 + rightPadding: 8 + padding: 8 + highlighted: true + font.weight: Font.Medium + display: AbstractButton.TextOnly + font.family: "Work Sans" + font.capitalization: Font.MixedCase + Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter + Layout.rightMargin: 8 + visible: false + } } } @@ -101,6 +120,18 @@ Page { text: qsTr("Full name") Layout.alignment: Qt.AlignVCenter } + + TextField { + id: fullnameTextField + Layout.rightMargin: 16 + Layout.leftMargin: 24 + font.pointSize: 16 + font.family: "Work Sans" + Layout.fillWidth: true + placeholderText: qsTr("Full name") + Layout.alignment: Qt.AlignVCenter + visible: false + } } RowLayout { id: usernameRowLayout @@ -134,6 +165,18 @@ Page { Layout.fillWidth: true text: qsTr("Username") } + + TextField { + id: usernameTextField + Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter + Layout.rightMargin: 16 + Layout.leftMargin: 24 + font.pointSize: 16 + font.family: "Work Sans" + Layout.fillWidth: true + placeholderText: qsTr("Username") + visible: false + } } RowLayout { @@ -168,6 +211,18 @@ Page { font.family: "Work Sans" font.pointSize: 16 } + + TextField { + id: userEmailTextField + Layout.fillWidth: true + placeholderText: qsTr("Your@email.com") + Layout.rightMargin: 16 + Layout.leftMargin: 24 + verticalAlignment: Text.AlignVCenter + font.family: "Work Sans" + font.pointSize: 16 + visible: false + } } ItemDelegate { -- cgit v1.2.3