forked from qt-creator/qt-creator
PlainTextEditor: Use info suppression for syntax highlighting
Remove specific setting for warning suppression and use the global one Change-Id: I1fe2b749d960283b8414cc5db5a5a7e9f20e7740 Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
28b9f0f3d6
commit
384b024c2e
@@ -65,8 +65,7 @@ PlainTextEditor::PlainTextEditor(PlainTextEditorWidget *editor)
|
||||
|
||||
PlainTextEditorWidget::PlainTextEditorWidget(QWidget *parent)
|
||||
: BaseTextEditorWidget(parent),
|
||||
m_isMissingSyntaxDefinition(false),
|
||||
m_ignoreMissingSyntaxDefinition(false)
|
||||
m_isMissingSyntaxDefinition(false)
|
||||
{
|
||||
setRevisionsVisible(true);
|
||||
setMarksVisible(true);
|
||||
@@ -196,11 +195,6 @@ bool PlainTextEditorWidget::isMissingSyntaxDefinition() const
|
||||
return m_isMissingSyntaxDefinition;
|
||||
}
|
||||
|
||||
bool PlainTextEditorWidget::ignoreMissingSyntaxDefinition() const
|
||||
{
|
||||
return m_ignoreMissingSyntaxDefinition;
|
||||
}
|
||||
|
||||
QString PlainTextEditorWidget::findDefinitionId(const Core::MimeType &mimeType,
|
||||
bool considerParents) const
|
||||
{
|
||||
@@ -224,9 +218,4 @@ void PlainTextEditorWidget::acceptMissingSyntaxDefinitionInfo()
|
||||
Constants::TEXT_EDITOR_HIGHLIGHTER_SETTINGS);
|
||||
}
|
||||
|
||||
void PlainTextEditorWidget::ignoreMissingSyntaxDefinitionInfo()
|
||||
{
|
||||
m_ignoreMissingSyntaxDefinition = true;
|
||||
}
|
||||
|
||||
} // namespace TextEditor
|
||||
|
||||
Reference in New Issue
Block a user