forked from qt-creator/qt-creator
Nim: Added support for nim script files
Added a new entry inside the "New" menu for creating a new nim script file (*.nims) Added support for editing them inside the editor Change-Id: I09a514fdd4e4a0e9a78bb557db3e8c7e97683b8d Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
committed by
Alessandro Portale
parent
8fce605913
commit
1a1cf3c12b
@@ -81,8 +81,10 @@ bool NimPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
|
||||
// Add MIME overlay icons (these icons displayed at Project dock panel)
|
||||
const QIcon icon((QLatin1String(Constants::C_NIM_ICON_PATH)));
|
||||
if (!icon.isNull())
|
||||
if (!icon.isNull()) {
|
||||
Core::FileIconProvider::registerIconOverlayForMimeType(icon, Constants::C_NIM_MIMETYPE);
|
||||
Core::FileIconProvider::registerIconOverlayForMimeType(icon, Constants::C_NIM_SCRIPT_MIMETYPE);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user