Merge remote-tracking branch 'origin/3.6'

Change-Id: I8223551aec66539dd8c55262e5000c1621410334
This commit is contained in:
Eike Ziller
2015-12-15 12:21:49 +01:00
54 changed files with 3096 additions and 883 deletions

View File

@@ -36,8 +36,10 @@
#include <coreplugin/editormanager/documentmodel.h>
#include <texteditor/fontsettings.h>
#include <texteditor/textdocument.h>
#include <texteditor/texteditor.h>
#include <texteditor/texteditorsettings.h>
#include <QTextBlock>
@@ -246,10 +248,8 @@ QStringList highlightExceptionCode(int lineNumber, const QString &filePath, cons
QStringList messages;
QList<IEditor *> editors = DocumentModel::editorsForFilePath(filePath);
// set up the format for the errors
QTextCharFormat errorFormat;
errorFormat.setUnderlineStyle(QTextCharFormat::SingleUnderline);
errorFormat.setUnderlineColor(Qt::red);
const TextEditor::FontSettings &fontSettings = TextEditor::TextEditorSettings::instance()->fontSettings();
QTextCharFormat errorFormat = fontSettings.toTextCharFormat(TextEditor::C_ERROR);
foreach (IEditor *editor, editors) {
TextEditorWidget *ed = qobject_cast<TextEditorWidget *>(editor->widget());