mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-05 16:15:26 +02:00
textmessagedelegate: add context menu support for selectedText
GitLab: #601 Change-Id: Ic1ed7d2b724a04281973e974a787a680fbd26387
This commit is contained in:
parent
28f922677b
commit
0937f083e8
1 changed files with 14 additions and 0 deletions
|
@ -64,6 +64,20 @@ SBSMessageBase {
|
|||
color: isOutgoing ?
|
||||
JamiTheme.messageOutTxtColor :
|
||||
JamiTheme.messageInTxtColor
|
||||
|
||||
TapHandler {
|
||||
acceptedButtons: Qt.RightButton
|
||||
onTapped: function onTapped(eventPoint) {
|
||||
ctxMenu.openMenuAt(eventPoint.position)
|
||||
}
|
||||
}
|
||||
|
||||
LineEditContextMenu {
|
||||
id: ctxMenu
|
||||
|
||||
lineEditObj: parent
|
||||
selectOnly: parent.readOnly
|
||||
}
|
||||
},
|
||||
Loader {
|
||||
id: extraContent
|
||||
|
|
Loading…
Add table
Reference in a new issue