ui: Colors in SearchView

Show the right colors in SearchView for the different NodeTypes or QueryNodeTyps

Note: add colors to your Applcationsettings like in the template

fortune cookie message = recognition will come from unexpected sources
This commit is contained in:
Andreas Stallinger
2015-03-04 11:55:25 +01:00
parent 284fb336a6
commit da1a6d69c4
32 changed files with 455 additions and 100 deletions
+3 -3
View File
@@ -317,7 +317,7 @@ void Node::addComponentSignature(std::shared_ptr<TokenComponentSignature> compon
}
}
std::string Node::getTypeString(NodeType type) const
std::string Node::getTypeString(NodeType type)
{
switch (type)
{
@@ -346,11 +346,11 @@ std::string Node::getTypeString(NodeType type) const
case NODE_ENUM:
return "enum";
case NODE_ENUM_CONSTANT:
return "enum constant";
return "enum_constant";
case NODE_TYPEDEF:
return "typedef";
case NODE_TEMPLATE_PARAMETER_TYPE:
return "template parameter type";
return "template_parameter_type";
case NODE_FILE:
return "file";
}
+2 -1
View File
@@ -42,6 +42,8 @@ public:
NODE_FILE = 0x8000
};
static std::string getTypeString(NodeType type);
Node(NodeType type, std::shared_ptr<TokenComponentName> nameComponent);
Node(const Node& other);
virtual ~Node();
@@ -85,7 +87,6 @@ public:
void addComponentSignature(std::shared_ptr<TokenComponentSignature> component);
// Logging.
std::string getTypeString(NodeType type) const;
virtual std::string getTypeString() const;
std::string getAsString() const;