forked from qt-creator/qt-creator
VCS: Do not use monospace font in output window
Change-Id: Id022a55152880a999c6c6c81ca88f70abfa88b8b Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
committed by
Orgad Shaneh
parent
e65aeb5b12
commit
d97e677be4
@@ -291,24 +291,17 @@ VcsOutputWindow::VcsOutputWindow()
|
|||||||
Q_ASSERT(d->passwordRegExp.isValid());
|
Q_ASSERT(d->passwordRegExp.isValid());
|
||||||
m_instance = this;
|
m_instance = this;
|
||||||
|
|
||||||
auto updateFontSettings = [] {
|
|
||||||
d->widget.setBaseFont(TextEditor::TextEditorSettings::fontSettings().font());
|
|
||||||
};
|
|
||||||
|
|
||||||
auto updateBehaviorSettings = [] {
|
auto updateBehaviorSettings = [] {
|
||||||
d->widget.setWheelZoomEnabled(
|
d->widget.setWheelZoomEnabled(
|
||||||
TextEditor::TextEditorSettings::behaviorSettings().m_scrollWheelZooming);
|
TextEditor::TextEditorSettings::behaviorSettings().m_scrollWheelZooming);
|
||||||
};
|
};
|
||||||
|
|
||||||
updateFontSettings();
|
|
||||||
updateBehaviorSettings();
|
updateBehaviorSettings();
|
||||||
setupContext(Internal::C_VCS_OUTPUT_PANE, &d->widget);
|
setupContext(Internal::C_VCS_OUTPUT_PANE, &d->widget);
|
||||||
|
|
||||||
connect(this, &IOutputPane::zoomIn, &d->widget, &Core::OutputWindow::zoomIn);
|
connect(this, &IOutputPane::zoomIn, &d->widget, &Core::OutputWindow::zoomIn);
|
||||||
connect(this, &IOutputPane::zoomOut, &d->widget, &Core::OutputWindow::zoomOut);
|
connect(this, &IOutputPane::zoomOut, &d->widget, &Core::OutputWindow::zoomOut);
|
||||||
connect(this, &IOutputPane::resetZoom, &d->widget, &Core::OutputWindow::resetZoom);
|
connect(this, &IOutputPane::resetZoom, &d->widget, &Core::OutputWindow::resetZoom);
|
||||||
connect(TextEditor::TextEditorSettings::instance(), &TextEditor::TextEditorSettings::fontSettingsChanged,
|
|
||||||
this, updateFontSettings);
|
|
||||||
connect(TextEditor::TextEditorSettings::instance(), &TextEditor::TextEditorSettings::behaviorSettingsChanged,
|
connect(TextEditor::TextEditorSettings::instance(), &TextEditor::TextEditorSettings::behaviorSettingsChanged,
|
||||||
this, updateBehaviorSettings);
|
this, updateBehaviorSettings);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user