Commit 4d21936b authored by Jens Bache-Wiig's avatar Jens Bache-Wiig
Browse files

Fixes: Set icons for .hpp and .c files

Details:
Added one new purple icon for .c files and registered
the same icon for .hpp extensions.
parent 2fcf2ac5
...@@ -4,5 +4,6 @@ ...@@ -4,5 +4,6 @@
<file>images/qt_cpp.png</file> <file>images/qt_cpp.png</file>
<file>images/qt_h.png</file> <file>images/qt_h.png</file>
<file>CppEditor.mimetypes.xml</file> <file>CppEditor.mimetypes.xml</file>
<file>images/qt_c.png</file>
</qresource> </qresource>
</RCC> </RCC>
...@@ -71,8 +71,12 @@ CppEditorFactory::CppEditorFactory(CppPlugin *owner) : ...@@ -71,8 +71,12 @@ CppEditorFactory::CppEditorFactory(CppPlugin *owner) :
Core::FileIconProvider *iconProvider = Core::FileIconProvider::instance(); Core::FileIconProvider *iconProvider = Core::FileIconProvider::instance();
iconProvider->registerIconOverlayForSuffix(QIcon(":/cppeditor/images/qt_cpp.png"), iconProvider->registerIconOverlayForSuffix(QIcon(":/cppeditor/images/qt_cpp.png"),
QLatin1String("cpp")); QLatin1String("cpp"));
iconProvider->registerIconOverlayForSuffix(QIcon(":/cppeditor/images/qt_cpp.png"),
QLatin1String("hpp"));
iconProvider->registerIconOverlayForSuffix(QIcon(":/cppeditor/images/qt_h.png"), iconProvider->registerIconOverlayForSuffix(QIcon(":/cppeditor/images/qt_h.png"),
QLatin1String("h")); QLatin1String("h"));
iconProvider->registerIconOverlayForSuffix(QIcon(":/cppeditor/images/qt_c.png"),
QLatin1String("c"));
} }
QString CppEditorFactory::kind() const QString CppEditorFactory::kind() const
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment