void OutputPaneManager::toggleMaximized() { OutputPanePlaceHolder *ph = OutputPanePlaceHolder::getCurrent(); QTC_ASSERT(ph, return); if (!ph->isVisible()) // easier than disabling/enabling the action return; ph->setMaximized(!ph->isMaximized()); }
void OutputPaneManager::slotMinMax() { OutputPanePlaceHolder *ph = OutputPanePlaceHolder::getCurrent(); QTC_ASSERT(ph, return); if (!ph->isVisible()) // easier than disabling/enabling the action return; m_maximised = !m_maximised; ph->maximizeOrMinimize(m_maximised); m_minMaxAction->setIcon(m_maximised ? m_minimizeIcon : m_maximizeIcon); m_minMaxAction->setText(m_maximised ? tr("Minimize Output Pane") : tr("Maximize Output Pane")); }