diff options
author | David Schulz <david.schulz@qt.io> | 2018-07-25 10:00:38 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2018-08-06 13:22:47 +0000 |
commit | 141f19a65283d3b2ac5677068cd858e1ace10623 (patch) | |
tree | a50cfa6c597205cf8154a75ac1985df30c6411b1 /src/plugins/glsleditor | |
parent | 5d67a471e06fa7606fcfd8f3a19701f0e6f1975a (diff) | |
download | qt-creator-141f19a65283d3b2ac5677068cd858e1ace10623.tar.gz |
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>
Diffstat (limited to 'src/plugins/glsleditor')
-rw-r--r-- | src/plugins/glsleditor/glslcompletionassist.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/glsleditor/glslcompletionassist.cpp b/src/plugins/glsleditor/glslcompletionassist.cpp index 2effaa7fa3..4fb33ac17e 100644 --- a/src/plugins/glsleditor/glslcompletionassist.cpp +++ b/src/plugins/glsleditor/glslcompletionassist.cpp @@ -161,15 +161,15 @@ static QIcon glslIcon(IconTypes iconType) switch (iconType) { case IconTypeType: - return Icons::iconForType(Icons::ClassIconType); + return Utils::CodeModelIcon::iconForType(Utils::CodeModelIcon::Class); case IconTypeConst: - return Icons::iconForType(Icons::EnumeratorIconType); + return Utils::CodeModelIcon::iconForType(Utils::CodeModelIcon::Enumerator); case IconTypeKeyword: - return Icons::iconForType(Icons::KeywordIconType); + return Utils::CodeModelIcon::iconForType(Utils::CodeModelIcon::Keyword); case IconTypeFunction: - return Icons::iconForType(Icons::FuncPublicIconType); + return Utils::CodeModelIcon::iconForType(Utils::CodeModelIcon::FuncPublic); case IconTypeVariable: - return Icons::iconForType(Icons::VarPublicIconType); + return Utils::CodeModelIcon::iconForType(Utils::CodeModelIcon::VarPublic); case IconTypeAttribute: { static const QIcon icon = Icon({{member, Theme::IconsCodeModelAttributeColor}}, Icon::Tint).icon(); @@ -187,7 +187,7 @@ static QIcon glslIcon(IconTypes iconType) } case IconTypeOther: default: - return Icons::iconForType(Icons::NamespaceIconType); + return Utils::CodeModelIcon::iconForType(Utils::CodeModelIcon::Namespace); } } |