2022-01-27 11:28:27 +00:00
|
|
|
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 ""
|
2022-04-06 11:44:49 +00:00
|
|
|
return root.appSearchModule.getSearchLocationObject()
|
2022-01-27 11:28:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function resultItemClicked(itemId) {
|
|
|
|
if(!root.appSearchModule)
|
|
|
|
return
|
|
|
|
root.appSearchModule.resultItemClicked(itemId)
|
|
|
|
}
|
|
|
|
}
|