Commit 7b6e32c2 authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed terminal presentation mode switch

parent c622edb4
......@@ -1207,6 +1207,13 @@ void MainWindow::enterPresentationMode()
Plugin::PresentationModeMainFontSizeDefaultValue).toInt();
m_plugin->updateAppFontSize(mainFontSize);
}
if (m_plugin->terminal_ && m_plugin->plugin_editor) {
QFont fnt = m_plugin->plugin_editor->defaultEditorFont();
int editorFontSize = m_plugin->mySettings()->value(Plugin::PresentationModeEditorFontSizeKey,
Plugin::PresentationModeEditorFontSizeDefaultValue).toInt();
fnt.setPointSize(editorFontSize);
m_plugin->terminal_->setTerminalFont(fnt);
}
}
void MainWindow::leavePresentationMode()
......
......@@ -466,6 +466,11 @@ void Term::editLast()
void Term::setTerminalFont(const QFont &font)
{
plane_->setFont(font);
Q_FOREACH(OneSession * s, sessions_) {
s->setFont(font);
s->relayout(plane_->width(), 0, true);
}
plane_->update();
}
} // namespace Terminal
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment