ui: integrated autocompletion and filtering into SearchView
- QtSearchView was split into QtSearchView and QtSearchBox. - QtSearchBox contains all Qt elements and can use them purely - QtSearchView forwards calls from the SearchController to QtSearchBox - Searching is initiated with MessageSearch to the SearchController - Autocompletion is initiated with MessageSearchAutocomplete to the SearchController - The search field is able to create filter queries by only giving autocompletions for the last token in the query - For named tokens the search field adds their token ids to the query in the form of "A,25" for faster lookup bug id = #21
This commit is contained in:
@@ -29,7 +29,7 @@ void QueryNode::print(std::ostream& ostream, int n) const
|
||||
ostream << ')';
|
||||
}
|
||||
|
||||
if (!m_isComplete || !isComplete())
|
||||
if (!isComplete())
|
||||
{
|
||||
ostream << " INVALID";
|
||||
}
|
||||
@@ -47,6 +47,11 @@ void QueryNode::setIsGroup(bool isGroup)
|
||||
m_isGroup = isGroup;
|
||||
}
|
||||
|
||||
bool QueryNode::isComplete() const
|
||||
{
|
||||
return m_isComplete && derivedIsComplete();
|
||||
}
|
||||
|
||||
void QueryNode::setIsComplete(bool isComplete)
|
||||
{
|
||||
m_isComplete = isComplete;
|
||||
|
||||
Reference in New Issue
Block a user