Added mime-type for JS files to the QMLJS text editor.

This commit is contained in:
Erik Verbruggen
2010-01-15 17:41:12 +01:00
parent 4f95378089
commit 062fa8e783
6 changed files with 20 additions and 7 deletions

View File

@@ -42,9 +42,12 @@ using namespace QmlJSEditor::Internal;
using namespace QmlJSEditor::Constants;
QmlJSEditorFactory::QmlJSEditorFactory(QObject *parent)
: Core::IEditorFactory(parent),
m_mimeTypes(QLatin1String(QmlJSEditor::Constants::QMLJSEDITOR_MIMETYPE))
: Core::IEditorFactory(parent)
{
m_mimeTypes
<< QLatin1String(QmlJSEditor::Constants::QML_MIMETYPE)
<< QLatin1String(QmlJSEditor::Constants::JS_MIMETYPE)
;
}
QmlJSEditorFactory::~QmlJSEditorFactory()