Core: Fix enabling/disabling of zoomIn/Out buttons in output panes

Amends 48073b2990 to avoid the creation of extra toplevel windows (and
warnings on MS Windows on startup).

Also, ensure that that the initial tab-less application output pane
shows the buttons, albeit in disabled state. All other output panes do
not have to explicitly enable them.

Change-Id: I6c6ef374c09c77e2eb953743071917d9346ca85d
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2019-04-23 18:03:12 +02:00
parent 261d7752b0
commit c453e896a0
5 changed files with 2 additions and 9 deletions

View File

@@ -54,7 +54,6 @@ MessageOutputWindow::MessageOutputWindow()
p.setColor(QPalette::HighlightedText, activeHighlightedText);
m_widget->setPalette(p);
setZoomButtonsEnabled(true);
connect(this, &IOutputPane::zoomIn, m_widget, &Core::OutputWindow::zoomIn);
connect(this, &IOutputPane::zoomOut, m_widget, &Core::OutputWindow::zoomOut);
connect(this, &IOutputPane::fontChanged, m_widget, &OutputWindow::setBaseFont);