Make account user ID an easily copiable RO field
This commit is contained in:
parent
6af4cca315
commit
28b25a53ea
|
@ -202,21 +202,29 @@ HFlickableColumnPage {
|
|||
}
|
||||
}
|
||||
|
||||
HSelectableLabel {
|
||||
textFormat: HSelectableLabel.RichText
|
||||
wrapMode: HLabel.Wrap
|
||||
text: qsTr("User ID: %1")
|
||||
.arg(utils.coloredNameHtml("", userId, userId))
|
||||
HLabeledItem {
|
||||
label.text: qsTr("User ID:")
|
||||
|
||||
Layout.fillWidth: true
|
||||
|
||||
TapHandler {
|
||||
acceptedButtons: Qt.RightButton
|
||||
onTapped: idMenu.spawn()
|
||||
HRowLayout {
|
||||
width: parent.width
|
||||
|
||||
HTextArea {
|
||||
id: idArea
|
||||
textFormat: HSelectableLabel.RichText
|
||||
wrapMode: HLabel.Wrap
|
||||
readOnly: true
|
||||
radius: 0
|
||||
text: utils.coloredNameHtml("", userId, userId)
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
|
||||
HTextContextMenu {
|
||||
id: idMenu
|
||||
FieldCopyButton {
|
||||
textControl: idArea
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user