summaryrefslogtreecommitdiff
path: root/src/plugins/glsleditor
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2018-07-25 10:00:38 +0200
committerDavid Schulz <david.schulz@qt.io>2018-08-06 13:22:47 +0000
commit141f19a65283d3b2ac5677068cd858e1ace10623 (patch)
treea50cfa6c597205cf8154a75ac1985df30c6411b1 /src/plugins/glsleditor
parent5d67a471e06fa7606fcfd8f3a19701f0e6f1975a (diff)
downloadqt-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.cpp12
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);
}
}