Room settings: add room ID text area + copy button
The only way to see a room's ID previously was to right click a room in the left pane, copy option, and paste it somewhere.
This commit is contained in:
@@ -16,9 +16,11 @@ HButton {
|
||||
toolTip.label.wrapMode: HLabel.NoWrap
|
||||
|
||||
onClicked: {
|
||||
const oldPosition = textControl.cursorPosition
|
||||
textControl.selectAll()
|
||||
textControl.copy()
|
||||
textControl.deselect()
|
||||
textControl.cursorPosition = oldPosition
|
||||
|
||||
toolTip.text = qsTr("Copied!")
|
||||
toolTip.instantShow(2000)
|
||||
|
Reference in New Issue
Block a user