mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-23 04:50:28 +00:00
25f7544b41
- broken "jump to a section/chat/message" feature fixed - added loading indicator while searching is in progress - animation when we point to the searched message is in place again Fixes #4577
41 lines
1.0 KiB
QML
41 lines
1.0 KiB
QML
import QtQuick 2.13
|
|
|
|
QtObject {
|
|
id: root
|
|
|
|
property var appSearchModule
|
|
|
|
property var locationMenuModel: root.appSearchModule.locationMenuModel
|
|
property var resultModel: root.appSearchModule.resultModel
|
|
|
|
function searchMessages(searchTerm) {
|
|
if(!root.appSearchModule)
|
|
return
|
|
root.appSearchModule.searchMessages(searchTerm)
|
|
}
|
|
|
|
function setSearchLocation(location, subLocation) {
|
|
if(!root.appSearchModule)
|
|
return
|
|
root.appSearchModule.setSearchLocation(location, subLocation)
|
|
}
|
|
|
|
function prepareLocationMenuModel() {
|
|
if(!root.appSearchModule)
|
|
return
|
|
root.appSearchModule.prepareLocationMenuModel()
|
|
}
|
|
|
|
function getSearchLocationObject() {
|
|
if(!root.appSearchModule)
|
|
return ""
|
|
root.appSearchModule.getSearchLocationObject()
|
|
}
|
|
|
|
function resultItemClicked(itemId) {
|
|
if(!root.appSearchModule)
|
|
return
|
|
root.appSearchModule.resultItemClicked(itemId)
|
|
}
|
|
}
|