Skip to content
Snippets Groups Projects
Commit 2cd3ba8c authored by Rhys Weatherley's avatar Rhys Weatherley
Browse files

Fix the icon for the GLSL mime type

parent cda026ee
No related branches found
No related tags found
No related merge requests found
......@@ -150,7 +150,9 @@ bool GLSLEditorPlugin::initialize(const QStringList & /*arguments*/, QString *er
error_message->clear();
Core::FileIconProvider *iconProvider = Core::FileIconProvider::instance();
iconProvider->registerIconOverlayForSuffix(QIcon(QLatin1String(":/glsleditor/images/glslfile.png")), "glsl");
Core::MimeDatabase *mimeDatabase = Core::ICore::instance()->mimeDatabase();
iconProvider->registerIconOverlayForMimeType(QIcon(QLatin1String(":/glsleditor/images/glslfile.png")),
mimeDatabase->findByType(QLatin1String(GLSLEditor::Constants::GLSL_MIMETYPE)));
Core::BaseFileWizardParameters fragWizardParameters(Core::IWizard::FileWizard);
fragWizardParameters.setCategory(QLatin1String(Constants::WIZARD_CATEGORY_GLSL));
......
src/plugins/glsleditor/images/glslfile.png

385 B | W: | H:

src/plugins/glsleditor/images/glslfile.png

321 B | W: | H:

src/plugins/glsleditor/images/glslfile.png
src/plugins/glsleditor/images/glslfile.png
src/plugins/glsleditor/images/glslfile.png
src/plugins/glsleditor/images/glslfile.png
  • 2-up
  • Swipe
  • Onion skin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment