UserDetailDialog: Improve consistency

Use same spacing and sizing as GroupChatDrawerHeader and add a QR code
to share the contact.

Signed-off-by: Carl Schwan <carlschwan@kde.org>
This commit is contained in:
Carl Schwan
2026-01-18 21:58:34 +01:00
parent f4e857519b
commit 581f5be410
2 changed files with 146 additions and 114 deletions

View File

@@ -70,6 +70,7 @@ ColumnLayout {
Kirigami.Heading {
Layout.fillWidth: true
text: root.room ? root.room.displayName : i18n("No name")
clip: true // Intentional to limit insane Unicode in display names
textFormat: Text.PlainText
wrapMode: Text.Wrap
}
@@ -94,7 +95,7 @@ ColumnLayout {
}
onClicked: {
let map = Qt.createComponent('org.kde.neochat', 'QrCodeMaximizeComponent').createObject(QQC2.Overlay.overlay, {
const map = Qt.createComponent('org.kde.neochat', 'QrCodeMaximizeComponent').createObject(QQC2.Overlay.overlay, {
text: barcode.content,
title: root.room ? root.room.displayName : "",
subtitle: root.room ? root.room.id : "",