forked from qt-creator/qt-creator
Core: Use restrictions on character count instead of line counts
Assume lines with an average of 100 characters for the transition and use the character limit already in two cases. Change-Id: I43316d51d7d5017aa413d6c910d3784a14237e9f Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -447,7 +447,7 @@ void AppOutputPane::createNewOutputWindow(RunControl *rc)
|
||||
ow->setWindowTitle(tr("Application Output Window"));
|
||||
ow->setWindowIcon(Icons::WINDOW.icon());
|
||||
ow->setWordWrapEnabled(ProjectExplorerPlugin::projectExplorerSettings().wrapAppOutput);
|
||||
ow->setMaxLineCount(ProjectExplorerPlugin::projectExplorerSettings().maxAppOutputLines);
|
||||
ow->setMaxCharCount(ProjectExplorerPlugin::projectExplorerSettings().maxAppOutputChars);
|
||||
ow->setWheelZoomEnabled(TextEditor::TextEditorSettings::behaviorSettings().m_scrollWheelZooming);
|
||||
ow->setBaseFont(TextEditor::TextEditorSettings::fontSettings().font());
|
||||
ow->setFontZoom(m_zoom);
|
||||
@@ -480,7 +480,7 @@ void AppOutputPane::updateFromSettings()
|
||||
{
|
||||
foreach (const RunControlTab &tab, m_runControlTabs) {
|
||||
tab.window->setWordWrapEnabled(ProjectExplorerPlugin::projectExplorerSettings().wrapAppOutput);
|
||||
tab.window->setMaxLineCount(ProjectExplorerPlugin::projectExplorerSettings().maxAppOutputLines);
|
||||
tab.window->setMaxCharCount(ProjectExplorerPlugin::projectExplorerSettings().maxAppOutputChars);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user