ui: added smart search box
This change switches the search box in the search view from QLineEdit to the derived QtSmartSearchBox implementation, which is capeable of displaying tokens of the query as selectable button elements in different colors. It allows for all the usual mouse and keyboard interactions that the QLineEdit offers. fortune cookie message = Good news from someone dear is coming soon.
This commit is contained in:
@@ -8,13 +8,14 @@
|
||||
|
||||
#include "data/query/QueryOperator.h"
|
||||
|
||||
class QueryNode;
|
||||
|
||||
class QueryTree
|
||||
{
|
||||
public:
|
||||
static std::deque<std::string> tokenizeQuery(const std::string& query);
|
||||
static std::string getTokenName(const std::string& token);
|
||||
static std::string getTokenTypeName(const std::string& token);
|
||||
|
||||
QueryTree();
|
||||
QueryTree(const std::string& query);
|
||||
~QueryTree();
|
||||
|
||||
@@ -22,6 +23,8 @@ public:
|
||||
|
||||
bool isValid() const;
|
||||
|
||||
void build(const std::string& query);
|
||||
|
||||
void print(std::ostream& ostream) const;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user