forked from qt-creator/qt-creator
Output panes: Support keyboard shortcuts for zooming
Fixes: QTCREATORBUG-22567 Change-Id: I3c7419c7b464c329d8f8dae11db9a0b01e51f32c Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
@@ -213,6 +213,7 @@ AppOutputPane::AppOutputPane() :
|
||||
|
||||
connect(this, &Core::IOutputPane::zoomIn, this, &AppOutputPane::zoomIn);
|
||||
connect(this, &Core::IOutputPane::zoomOut, this, &AppOutputPane::zoomOut);
|
||||
connect(this, &IOutputPane::resetZoom, this, &AppOutputPane::resetZoom);
|
||||
|
||||
m_settingsButton->setToolTip(tr("Open Settings Page"));
|
||||
m_settingsButton->setIcon(Utils::Icons::SETTINGS_TOOLBAR.icon());
|
||||
@@ -247,6 +248,7 @@ AppOutputPane::AppOutputPane() :
|
||||
setupFilterUi("AppOutputPane.Filter");
|
||||
setFilteringEnabled(false);
|
||||
setZoomButtonsEnabled(false);
|
||||
setupContext("Core.AppOutputPane", m_mainWidget);
|
||||
}
|
||||
|
||||
AppOutputPane::~AppOutputPane()
|
||||
@@ -662,6 +664,12 @@ void AppOutputPane::zoomOut(int range)
|
||||
tab.window->zoomOut(range);
|
||||
}
|
||||
|
||||
void AppOutputPane::resetZoom()
|
||||
{
|
||||
for (const RunControlTab &tab : qAsConst(m_runControlTabs))
|
||||
tab.window->resetZoom();
|
||||
}
|
||||
|
||||
void AppOutputPane::enableButtons(const RunControl *rc)
|
||||
{
|
||||
if (rc) {
|
||||
|
||||
Reference in New Issue
Block a user