forked from qt-creator/qt-creator
Avoid setting large minimum size for output panes.
The search result pane set a minimum size for the "New Search" panel which forced this relative big minimum size on all panels and made it impossible to make the output pane area small. Now, the new search is wrapped into a scroll area, doesn't enforce a minimum size anymore, and, instead, when initiating a new search (via shortcut or menu action) resizes the pane so the panel fits nicely. Change-Id: I9afe67e66f324111a10a97f33c203846231e6a93 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -254,7 +254,7 @@ void OutputPaneManager::init()
|
||||
const int idx = m_outputWidgetPane->addWidget(outPane->outputWidget(this));
|
||||
|
||||
m_pageMap.insert(idx, outPane);
|
||||
connect(outPane, SIGNAL(showPage(bool)), this, SLOT(showPage(bool)));
|
||||
connect(outPane, SIGNAL(showPage(bool,bool)), this, SLOT(showPage(bool,bool)));
|
||||
connect(outPane, SIGNAL(hidePage()), this, SLOT(slotHide()));
|
||||
connect(outPane, SIGNAL(togglePage(bool)), this, SLOT(togglePage(bool)));
|
||||
connect(outPane, SIGNAL(navigateStateUpdate()), this, SLOT(updateNavigateState()));
|
||||
@@ -431,10 +431,12 @@ void OutputPaneManager::updateNavigateState()
|
||||
}
|
||||
|
||||
// Slot connected to showPage signal of each page
|
||||
void OutputPaneManager::showPage(bool focus)
|
||||
void OutputPaneManager::showPage(bool focus, bool ensureSizeHint)
|
||||
{
|
||||
int idx = findIndexForPage(qobject_cast<IOutputPane*>(sender()));
|
||||
showPage(idx, focus);
|
||||
if (ensureSizeHint && OutputPanePlaceHolder::getCurrent())
|
||||
OutputPanePlaceHolder::getCurrent()->ensureSizeHintAsMinimum();
|
||||
}
|
||||
|
||||
void OutputPaneManager::showPage(int idx, bool focus)
|
||||
|
||||
Reference in New Issue
Block a user