summary refs log tree commit diff
path: root/resources/qml/dialogs/UserProfile.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-11-03 23:01:36 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-11-03 23:01:36 +0100
commit1e22274d8cb4da5f4f02dfa3002b9ac2838f455c (patch)
treeaf88a2e61989c180380a0ff555b0a7ec1468610c /resources/qml/dialogs/UserProfile.qml
parentFix unjoinable invites on mobile as well as unclickable previews (diff)
downloadnheko-1e22274d8cb4da5f4f02dfa3002b9ac2838f455c.tar.xz
Use ItemDelegate in RoomList instead of a Rectangle with handlers
fixes #683
relates to #571
Diffstat (limited to 'resources/qml/dialogs/UserProfile.qml')
-rw-r--r--resources/qml/dialogs/UserProfile.qml21
1 files changed, 11 insertions, 10 deletions
diff --git a/resources/qml/dialogs/UserProfile.qml b/resources/qml/dialogs/UserProfile.qml
index 4c7095b2..da573ec1 100644
--- a/resources/qml/dialogs/UserProfile.qml
+++ b/resources/qml/dialogs/UserProfile.qml
@@ -319,22 +319,25 @@ ApplicationWindow {
                     }
 
                     ImageButton {
-                      Layout.alignment: Qt.AlignTop
-                      image: ":/icons/icons/ui/power-button-off.png"
-                      hoverEnabled: true
-                      ToolTip.visible: hovered
-                      ToolTip.text: qsTr("Sign out this device.")
-                      onClicked: profile.signOutDevice(deviceId)
-                      visible: profile.isSelf
+                        Layout.alignment: Qt.AlignTop
+                        image: ":/icons/icons/ui/power-button-off.png"
+                        hoverEnabled: true
+                        ToolTip.visible: hovered
+                        ToolTip.text: qsTr("Sign out this device.")
+                        onClicked: profile.signOutDevice(deviceId)
+                        visible: profile.isSelf
                     }
+
                 }
 
                 RowLayout {
                     id: deviceNameRow
+
                     property bool isEditingAllowed
 
                     TextInput {
                         id: deviceNameField
+
                         readOnly: !deviceNameRow.isEditingAllowed
                         text: deviceName
                         color: Nheko.colors.text
@@ -373,7 +376,7 @@ ApplicationWindow {
                     Layout.alignment: Qt.AlignLeft
                     elide: Text.ElideRight
                     color: Nheko.colors.text
-                    text: qsTr("Last seen %1 from %2").arg(new Date(lastTs).toLocaleString(Locale.ShortFormat)).arg(lastIp?lastIp:"???")
+                    text: qsTr("Last seen %1 from %2").arg(new Date(lastTs).toLocaleString(Locale.ShortFormat)).arg(lastIp ? lastIp : "???")
                 }
 
             }
@@ -409,8 +412,6 @@ ApplicationWindow {
                 }
             }
 
-
-
         }
 
         footer: DialogButtonBox {