Utils: move code model icons to utils

In preperation for the language server protocol support.

Change-Id: Iee4ccd53a86d9afdb357972ea62b75ace2edcb1d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
David Schulz
2018-07-25 10:00:38 +02:00
parent 5d67a471e0
commit 141f19a652
63 changed files with 423 additions and 423 deletions

View File

@@ -26,6 +26,7 @@
#pragma once
#include <cplusplus/CPlusPlusForwardDeclarations.h>
#include <utils/utilsicons.h>
#include <QIcon>
@@ -41,36 +42,7 @@ public:
static QIcon keywordIcon();
static QIcon macroIcon();
enum IconType {
ClassIconType = 0,
StructIconType,
EnumIconType,
EnumeratorIconType,
FuncPublicIconType,
FuncProtectedIconType,
FuncPrivateIconType,
FuncPublicStaticIconType,
FuncProtectedStaticIconType,
FuncPrivateStaticIconType,
NamespaceIconType,
VarPublicIconType,
VarProtectedIconType,
VarPrivateIconType,
VarPublicStaticIconType,
VarProtectedStaticIconType,
VarPrivateStaticIconType,
SignalIconType,
SlotPublicIconType,
SlotProtectedIconType,
SlotPrivateIconType,
KeywordIconType,
MacroIconType,
PropertyIconType,
UnknownIconType
};
static IconType iconTypeForSymbol(const Symbol *symbol);
static QIcon iconForType(IconType type);
static Utils::CodeModelIcon::Type iconTypeForSymbol(const Symbol *symbol);
private:
Icons() {}