forked from qt-creator/qt-creator
Generic highlighter is now part of the text editor plugin.
This commit is contained in:
@@ -44,7 +44,8 @@ PlainTextEditorFactory::PlainTextEditorFactory(QObject *parent)
|
||||
{
|
||||
m_actionHandler = new TextEditorActionHandler(
|
||||
QLatin1String(TextEditor::Constants::C_TEXTEDITOR),
|
||||
TextEditorActionHandler::Format);
|
||||
TextEditorActionHandler::Format |
|
||||
TextEditorActionHandler::UnCommentSelection);
|
||||
m_mimeTypes << QLatin1String(TextEditor::Constants::C_TEXTEDITOR_MIMETYPE_TEXT);
|
||||
}
|
||||
|
||||
@@ -76,6 +77,11 @@ Core::IEditor *PlainTextEditorFactory::createEditor(QWidget *parent)
|
||||
return rc->editableInterface();
|
||||
}
|
||||
|
||||
void PlainTextEditorFactory::addMimeType(const QString &type)
|
||||
{
|
||||
m_mimeTypes.append(type);
|
||||
}
|
||||
|
||||
QStringList PlainTextEditorFactory::mimeTypes() const
|
||||
{
|
||||
return m_mimeTypes;
|
||||
|
Reference in New Issue
Block a user