summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorJedi18 <targetakhil@gmail.com>2021-01-29 11:55:24 +0530
committerJedi18 <targetakhil@gmail.com>2021-01-29 11:55:24 +0530
commit9b5a287d14a18b1bef012a348dd77350fdb70ba3 (patch)
tree24ee09eb496c46a7b38b38a9921e6ff43ef975a7 /resources
parentfix linting 2 (diff)
downloadnheko-9b5a287d14a18b1bef012a348dd77350fdb70ba3.tar.xz
made requeste changes
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/UserProfile.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/resources/qml/UserProfile.qml b/resources/qml/UserProfile.qml

index 5e577099..79e2b665 100644 --- a/resources/qml/UserProfile.qml +++ b/resources/qml/UserProfile.qml
@@ -15,7 +15,7 @@ ApplicationWindow { minimumHeight: 420 palette: colors color: colors.window - title: profile.globalUserProfile ? "Global User Profile" : "Room User Profile" + title: profile.isGlobalUserProfile ? "Global User Profile" : "Room User Profile" ColumnLayout { id: contentL @@ -44,19 +44,19 @@ ApplicationWindow { Layout.alignment: Qt.AlignHCenter selectByMouse: true - Keys.priority: Keys.BeforeItem - Keys.onReturnPressed: profile.changeUsername(displayUsername.text) + onAccepted: profile.changeUsername(displayUsername.text) ImageButton { + visible: profile.isSelf anchors.leftMargin: 5 anchors.left: displayUsername.right anchors.verticalCenter: displayUsername.verticalCenter image: profile.isUsernameEditingAllowed ? ":/icons/icons/ui/checkmark.png" : ":/icons/icons/ui/edit.png" onClicked: { - if(profile.isUsernameEditingAllowed) { + if (profile.isUsernameEditingAllowed) { profile.changeUsername(displayUsername.text) - }else{ + } else { profile.allowUsernameEditing(true) } }