Removed xml from the mime type list of plain text editor.

This commit is contained in:
Leandro Melo
2010-05-10 14:09:23 +02:00
parent 929c7bb671
commit 4accb027a6
3 changed files with 1 additions and 12 deletions

View File

@@ -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>

View File

@@ -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()

View File

@@ -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