forked from qt-creator/qt-creator
IOutputPane: Refactor zoom function into base class
Try to make zoom and font handling in the panes more similar and put common stuff into IOutputPane. Change-Id: I59c38c5eecbf67b7ca6c9d84a6f61b1292a787df Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
André Hartmann
parent
e127d599ac
commit
48073b2990
@@ -305,7 +305,7 @@ void SerialOutputPane::createNewOutputWindow(SerialControl *rc)
|
||||
static uint counter = 0;
|
||||
Core::Id contextId = Core::Id(Constants::C_SERIAL_OUTPUT).withSuffix(counter++);
|
||||
Core::Context context(contextId);
|
||||
Core::OutputWindow *ow = new Core::OutputWindow(context, m_tabWidget);
|
||||
Core::OutputWindow *ow = new Core::OutputWindow(context, QString(), m_tabWidget);
|
||||
using TextEditor::TextEditorSettings;
|
||||
auto fontSettingsChanged = [ow] {
|
||||
ow->setBaseFont(TextEditorSettings::fontSettings().font());
|
||||
|
||||
Reference in New Issue
Block a user