forked from qt-creator/qt-creator
Removed xml from the mime type list of plain text editor.
This commit is contained in:
@@ -5,13 +5,4 @@
|
|||||||
<sub-class-of type="application/octet-stream"/>
|
<sub-class-of type="application/octet-stream"/>
|
||||||
<glob pattern="*.txt"/>
|
<glob pattern="*.txt"/>
|
||||||
</mime-type>
|
</mime-type>
|
||||||
<mime-type type="application/xml">
|
|
||||||
<sub-class-of type="text/plain"/>
|
|
||||||
<comment>XML document</comment>
|
|
||||||
<glob pattern="*.xml"/>
|
|
||||||
<glob pattern="*.xsl"/>
|
|
||||||
<glob pattern="*.xslt"/>
|
|
||||||
<glob pattern="*.xbl"/>
|
|
||||||
<alias type="text/xml"/>
|
|
||||||
</mime-type>
|
|
||||||
</mime-info>
|
</mime-info>
|
||||||
|
|||||||
@@ -45,8 +45,7 @@ PlainTextEditorFactory::PlainTextEditorFactory(QObject *parent)
|
|||||||
m_actionHandler = new TextEditorActionHandler(
|
m_actionHandler = new TextEditorActionHandler(
|
||||||
QLatin1String(TextEditor::Constants::C_TEXTEDITOR),
|
QLatin1String(TextEditor::Constants::C_TEXTEDITOR),
|
||||||
TextEditorActionHandler::Format);
|
TextEditorActionHandler::Format);
|
||||||
m_mimeTypes << QLatin1String(TextEditor::Constants::C_TEXTEDITOR_MIMETYPE_TEXT)
|
m_mimeTypes << QLatin1String(TextEditor::Constants::C_TEXTEDITOR_MIMETYPE_TEXT);
|
||||||
<< QLatin1String(TextEditor::Constants::C_TEXTEDITOR_MIMETYPE_XML);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PlainTextEditorFactory::~PlainTextEditorFactory()
|
PlainTextEditorFactory::~PlainTextEditorFactory()
|
||||||
|
|||||||
@@ -87,7 +87,6 @@ const char * const GOTO_NEXT_CHARACTER_WITH_SELECTION = "TextEditor.GotoNextChar
|
|||||||
const char * const GOTO_PREVIOUS_WORD_WITH_SELECTION = "TextEditor.GotoPreviousWordWithSelection";
|
const char * const GOTO_PREVIOUS_WORD_WITH_SELECTION = "TextEditor.GotoPreviousWordWithSelection";
|
||||||
const char * const GOTO_NEXT_WORD_WITH_SELECTION = "TextEditor.GotoNextWordWithSelection";
|
const char * const GOTO_NEXT_WORD_WITH_SELECTION = "TextEditor.GotoNextWordWithSelection";
|
||||||
const char * const C_TEXTEDITOR_MIMETYPE_TEXT = "text/plain";
|
const char * const C_TEXTEDITOR_MIMETYPE_TEXT = "text/plain";
|
||||||
const char * const C_TEXTEDITOR_MIMETYPE_XML = "application/xml";
|
|
||||||
|
|
||||||
|
|
||||||
// Text color and style categories
|
// Text color and style categories
|
||||||
|
|||||||
Reference in New Issue
Block a user