forked from qt-creator/qt-creator
AutoTest: Fix font for results pane
Use a correct font on macOS as well. Beside this there had been strange observation made when zooming the command line output. Change-Id: I8b8cdd0d76e415da4bc792b0d646154cfc8fde9d Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -45,7 +45,9 @@
|
||||
#include <coreplugin/icore.h>
|
||||
#include <projectexplorer/buildmanager.h>
|
||||
#include <projectexplorer/projectexplorer.h>
|
||||
#include <texteditor/fontsettings.h>
|
||||
#include <texteditor/texteditor.h>
|
||||
#include <texteditor/texteditorsettings.h>
|
||||
#include <utils/theme/theme.h>
|
||||
#include <utils/utilsicons.h>
|
||||
|
||||
@@ -129,9 +131,7 @@ TestResultsPane::TestResultsPane(QObject *parent) :
|
||||
|
||||
m_textOutput = new QPlainTextEdit;
|
||||
m_textOutput->setPalette(pal);
|
||||
QFont font("monospace");
|
||||
font.setStyleHint(QFont::TypeWriter);
|
||||
m_textOutput->setFont(font);
|
||||
m_textOutput->setFont(TextEditor::TextEditorSettings::fontSettings().font());
|
||||
m_textOutput->setWordWrapMode(QTextOption::WordWrap);
|
||||
m_textOutput->setReadOnly(true);
|
||||
m_outputWidget->addWidget(m_textOutput);
|
||||
|
Reference in New Issue
Block a user