- Open chat room message menu at the cursor position

- Keep showing filter bar in timeline if searching
This commit is contained in:
Julien Wadel 2021-09-03 22:08:18 +02:00
parent 642ff41e24
commit 1563244581
2 changed files with 9 additions and 4 deletions

View file

@ -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()
}
}

View file

@ -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