Account settings: make user ID label copiable

This commit is contained in:
miruka 2020-11-05 20:47:17 -04:00
parent 3d8914cb39
commit 74ffbdb0a8

View File

@ -202,14 +202,22 @@ HFlickableColumnPage {
} }
} }
HLabel { HSelectableLabel {
textFormat: HSelectableLabel.RichText
wrapMode: HLabel.Wrap
text: qsTr("User ID: %1") text: qsTr("User ID: %1")
.arg(utils.coloredNameHtml("", userId, userId)) .arg(utils.coloredNameHtml("", userId, userId))
textFormat: Text.StyledText
wrapMode: HLabel.Wrap
lineHeight: 1.1
Layout.fillWidth: true Layout.fillWidth: true
TapHandler {
acceptedButtons: Qt.RightButton
onTapped: idMenu.spawn()
}
HTextContextMenu {
id: idMenu
}
} }
HLabeledItem { HLabeledItem {