SerialTerminal: Use monospace font

Change-Id: Iea42d55c348959adf57936fe0141c5bd5673efbd
Reviewed-by: Benjamin Balga <balga.benjamin@gmail.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
Orgad Shaneh
2018-11-15 23:26:49 +02:00
committed by Orgad Shaneh
parent bd9c2f04c0
commit ad7c42c9b3
3 changed files with 13 additions and 1 deletions

View File

@@ -36,6 +36,8 @@
#include <coreplugin/icontext.h>
#include <coreplugin/icore.h>
#include <coreplugin/outputwindow.h>
#include <texteditor/fontsettings.h>
#include <texteditor/texteditorsettings.h>
#include <utils/algorithm.h>
#include <utils/icon.h>
@@ -304,6 +306,14 @@ void SerialOutputPane::createNewOutputWindow(SerialControl *rc)
Core::Id contextId = Core::Id(Constants::C_SERIAL_OUTPUT).withSuffix(counter++);
Core::Context context(contextId);
Core::OutputWindow *ow = new Core::OutputWindow(context, m_tabWidget);
using TextEditor::TextEditorSettings;
auto fontSettingsChanged = [ow] {
ow->setBaseFont(TextEditorSettings::fontSettings().font());
};
connect(TextEditorSettings::instance(), &TextEditorSettings::fontSettingsChanged,
this, fontSettingsChanged);
fontSettingsChanged();
ow->setWindowTitle(tr("Serial Terminal Window"));
ow->setFormatter(formatter);
// TODO: wordwrap, maxLineCount, zoom/wheelZoom (add to settings)

View File

@@ -5,6 +5,7 @@ QtcPlugin {
condition: Qt.serialport.present
Depends { name: "Core" }
Depends { name: "TextEditor" }
Depends { name: "Utils" }
Depends { name: "Qt.serialport"; required: false }

View File

@@ -3,4 +3,5 @@ QTC_LIB_DEPENDS += \
extensionsystem \
utils
QTC_PLUGIN_DEPENDS += \
coreplugin
coreplugin \
texteditor