mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-01 17:16:24 +00:00
- Open chat room message menu at the cursor position
- Keep showing filter bar in timeline if searching
This commit is contained in:
parent
642ff41e24
commit
1563244581
2 changed files with 9 additions and 4 deletions
|
|
@ -27,7 +27,7 @@ Item {
|
|||
signal removeEntryRequested()
|
||||
|
||||
function open(){
|
||||
messageMenu.open()
|
||||
messageMenu.popup()
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -92,7 +92,7 @@ Item {
|
|||
? Qt.PointingHandCursor
|
||||
: Qt.IBeamCursor
|
||||
|
||||
onClicked: mouse.button === Qt.RightButton && messageMenu.open()
|
||||
onClicked: mouse.button === Qt.RightButton && messageMenu.popup()
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ Rectangle {
|
|||
Layout.preferredHeight: TimelineStyle.legend.height
|
||||
Layout.alignment: Qt.AlignTop
|
||||
color: showHistory.containsMouse?TimelineStyle.legend.backgroundColor.hovered:TimelineStyle.legend.backgroundColor.normal
|
||||
visible:view.count > 0
|
||||
visible:view.count > 0 || searchView.visible
|
||||
|
||||
MouseArea{// no more showing history
|
||||
id:showHistory
|
||||
|
|
@ -185,7 +185,12 @@ Rectangle {
|
|||
border.width: 2
|
||||
visible:false
|
||||
//color: ContactsStyle.bar.backgroundColor
|
||||
onVisibleChanged: timeline.model.filterText = (visible?searchBar.text : '')
|
||||
onVisibleChanged: if(visible){
|
||||
timeline.model.filterText = searchBar.text
|
||||
searchBar.forceActiveFocus()
|
||||
}else{
|
||||
timeline.model.filterText = ''
|
||||
}
|
||||
|
||||
TextField {
|
||||
id:searchBar
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue