mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 14:44:01 +00:00
Change Chat room title : replace double click by simple click
This commit is contained in:
parent
edec781e6f
commit
144557145f
2 changed files with 6 additions and 6 deletions
|
|
@ -24,9 +24,9 @@ Column {
|
|||
|
||||
readonly property int statusWidth : (status.visible ? status.width + 5 : 0)
|
||||
|
||||
property bool usernameDoubleClickable: false
|
||||
property bool usernameClickable: false
|
||||
|
||||
signal usernameDoubleClicked()
|
||||
signal usernameClicked()
|
||||
|
||||
|
||||
|
||||
|
|
@ -59,8 +59,8 @@ Column {
|
|||
}
|
||||
MouseArea{
|
||||
anchors.fill:parent
|
||||
visible: usernameDoubleClickable
|
||||
onDoubleClicked: usernameDoubleClicked()
|
||||
visible: usernameClickable
|
||||
onClicked: usernameClicked()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ ColumnLayout {
|
|||
Layout.alignment: Qt.AlignTop | Qt.AlignLeft
|
||||
contactDescriptionStyle: ConversationStyle.bar.contactDescription
|
||||
username: avatar.username
|
||||
usernameDoubleClickable: chatRoomModel.isMeAdmin
|
||||
usernameClickable: chatRoomModel.isMeAdmin
|
||||
sipAddress: {
|
||||
if(chatRoomModel) {
|
||||
if(chatRoomModel.groupEnabled) {
|
||||
|
|
@ -145,7 +145,7 @@ ColumnLayout {
|
|||
}
|
||||
|
||||
}
|
||||
onUsernameDoubleClicked: {
|
||||
onUsernameClicked: {
|
||||
usernameEdit.visible = !usernameEdit.visible
|
||||
usernameEdit.forceActiveFocus()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue