summary refs log tree commit diff
path: root/resources/qml/UserProfile.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-09-13 18:23:41 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-09-13 18:23:41 +0200
commit94e1b52dddc1d49c60e0372953855651e33d7425 (patch)
tree869d9296f7b20e2f072d43cf75f9f70331c108f4 /resources/qml/UserProfile.qml
parentClean up UserProfile a bit (diff)
downloadnheko-94e1b52dddc1d49c60e0372953855651e33d7425.tar.xz
Single line click handler
Diffstat (limited to 'resources/qml/UserProfile.qml')
-rw-r--r--resources/qml/UserProfile.qml20
1 files changed, 7 insertions, 13 deletions
diff --git a/resources/qml/UserProfile.qml b/resources/qml/UserProfile.qml

index b5a5916a..9d59184d 100644 --- a/resources/qml/UserProfile.qml +++ b/resources/qml/UserProfile.qml
@@ -70,8 +70,8 @@ ApplicationWindow{ id: verifyUserButton text: "Verify" Layout.alignment: Qt.AlignHCenter - enabled: profile.isUserVerified?false:true - visible: profile.isUserVerified?false:true + enabled: profile.isUserVerified + visible: profile.isUserVerified onClicked: { var newFlow = profile.createFlow(true); @@ -92,9 +92,7 @@ ApplicationWindow{ hoverEnabled: true ToolTip.visible: hovered ToolTip.text: qsTr("Ban the user") - onClicked : { - profile.banUser() - } + onClicked: profile.banUser() } // ImageButton{ // image:":/icons/icons/ui/volume-off-indicator.png" @@ -113,18 +111,14 @@ ApplicationWindow{ hoverEnabled: true ToolTip.visible: hovered ToolTip.text: qsTr("Start a private chat") - onClicked : { - profile.startChat() - } + onClicked: profile.startChat() } ImageButton{ image:":/icons/icons/ui/round-remove-button.png" hoverEnabled: true ToolTip.visible: hovered ToolTip.text: qsTr("Kick the user") - onClicked : { - profile.kickUser() - } + onClicked: profile.kickUser() } } @@ -152,8 +146,8 @@ ApplicationWindow{ Layout.alignment: Qt.AlignLeft elide: Text.ElideRight - color: colors.text font.bold: true + color: colors.text text: model.deviceId } Text{ @@ -161,7 +155,7 @@ ApplicationWindow{ Layout.alignment: Qt.AlignRight elide: Text.ElideRight - color:colors.text + color: colors.text text: model.deviceName } }