Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
4accb027
Commit
4accb027
authored
May 10, 2010
by
Leandro Melo
Browse files
Removed xml from the mime type list of plain text editor.
parent
929c7bb6
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugins/texteditor/TextEditor.mimetypes.xml
View file @
4accb027
...
...
@@ -5,13 +5,4 @@
<sub-class-of
type=
"application/octet-stream"
/>
<glob
pattern=
"*.txt"
/>
</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>
src/plugins/texteditor/plaintexteditorfactory.cpp
View file @
4accb027
...
...
@@ -45,8 +45,7 @@ PlainTextEditorFactory::PlainTextEditorFactory(QObject *parent)
m_actionHandler
=
new
TextEditorActionHandler
(
QLatin1String
(
TextEditor
::
Constants
::
C_TEXTEDITOR
),
TextEditorActionHandler
::
Format
);
m_mimeTypes
<<
QLatin1String
(
TextEditor
::
Constants
::
C_TEXTEDITOR_MIMETYPE_TEXT
)
<<
QLatin1String
(
TextEditor
::
Constants
::
C_TEXTEDITOR_MIMETYPE_XML
);
m_mimeTypes
<<
QLatin1String
(
TextEditor
::
Constants
::
C_TEXTEDITOR_MIMETYPE_TEXT
);
}
PlainTextEditorFactory
::~
PlainTextEditorFactory
()
...
...
src/plugins/texteditor/texteditorconstants.h
View file @
4accb027
...
...
@@ -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_NEXT_WORD_WITH_SELECTION
=
"TextEditor.GotoNextWordWithSelection"
;
const
char
*
const
C_TEXTEDITOR_MIMETYPE_TEXT
=
"text/plain"
;
const
char
*
const
C_TEXTEDITOR_MIMETYPE_XML
=
"application/xml"
;
// Text color and style categories
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment