Skip to content
Snippets Groups Projects
Commit ed78c35f authored by Sébastien Blin's avatar Sébastien Blin
Browse files

UserProfile: be able to copy identifier

Change-Id: Ib402399f9339f537884f9833169d2c91243008b5
parent d42d1cd3
No related branches found
No related tags found
No related merge requests found
...@@ -182,7 +182,7 @@ BaseModalDialog { ...@@ -182,7 +182,7 @@ BaseModalDialog {
Layout.leftMargin: 10 Layout.leftMargin: 10
} }
Label { TextEdit {
id: contactId id: contactId
Layout.alignment: Qt.AlignLeft Layout.alignment: Qt.AlignLeft
Layout.preferredWidth: parent.width - identifierText.width - 35 Layout.preferredWidth: parent.width - identifierText.width - 35
...@@ -191,8 +191,17 @@ BaseModalDialog { ...@@ -191,8 +191,17 @@ BaseModalDialog {
font.kerning: true font.kerning: true
color: JamiTheme.textColor color: JamiTheme.textColor
elide: Text.ElideRight selectByMouse: true
text: idText readOnly: true
text: textMetricsContacIdText.elidedText
TextMetrics {
id: textMetricsContacIdText
font: contactDisplayName.font
text: idText
elideWidth: root.width - 200
elide: Qt.ElideMiddle
}
horizontalAlignment: Text.AlignLeft horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment