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:
Eberhard Graether
2014-10-22 17:28:46 +02:00
parent 89ac3a0512
commit a9c93a9437
28 changed files with 1102 additions and 268 deletions
+6 -3
View File
@@ -2,7 +2,6 @@
#define QUERY_COMMAND_H
#include <map>
#include <string>
#include "data/query/QueryNode.h"
@@ -46,7 +45,7 @@ public:
static std::map<std::string, CommandType> getCommandTypeMap();
QueryCommand(const std::string& name);
QueryCommand(std::string name);
~QueryCommand();
virtual bool isCommand() const;
@@ -55,13 +54,17 @@ public:
virtual bool derivedIsComplete() const;
virtual std::string getName() const;
virtual void print(std::ostream& ostream) const;
CommandType getType() const;
static const char BOUNDARY;
private:
CommandType m_type;
const std::string m_name;
std::string m_name;
};
#endif // QUERY_COMMAND_H