From 1fcd768f88f7e84978d19283c9fa6205624f2544 Mon Sep 17 00:00:00 2001 From: CH Chethan Reddy <40890937+Chethan2k1@users.noreply.github.com> Date: Sat, 18 Jul 2020 01:46:30 +0530 Subject: Adding Room Key Verification Stuff --- resources/qml/UserProfile.qml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'resources/qml/UserProfile.qml') diff --git a/resources/qml/UserProfile.qml b/resources/qml/UserProfile.qml index 5bdccb4d..c7dbc9aa 100644 --- a/resources/qml/UserProfile.qml +++ b/resources/qml/UserProfile.qml @@ -74,6 +74,26 @@ ApplicationWindow{ Layout.alignment: Qt.AlignHCenter } + Button { + id: verifyUserButton + text: "Verify" + Layout.alignment: Qt.AlignHCenter + enabled: profile.isUserVerified?false:true + visible: profile.isUserVerified?false:true + palette { + button: "white" + } + contentItem: Text { + text: verifyUserButton.text + color: "black" + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + } + onClicked: { + profile.verifyUser(); + } + } + RowLayout { Layout.alignment: Qt.AlignHCenter ImageButton { @@ -127,7 +147,7 @@ ApplicationWindow{ } ScrollView { - implicitHeight: userProfileDialog.height/2 + 20 + implicitHeight: userProfileDialog.height/2-13 implicitWidth: userProfileDialog.width-20 clip: true Layout.alignment: Qt.AlignHCenter -- cgit 1.5.1