forked from qt-creator/qt-creator
Fix the height of the new search result pane.
For the bigger search filters like C++ Symbols & Files on File System it was unusable e.g. on Mac. Change-Id: I1839238660cc7508ada4e580388ee08d8eca8a6a Reviewed-by: Daniel Teske <daniel.teske@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
#include <QtGui/QStringListModel>
|
||||
#include <QtGui/QCompleter>
|
||||
#include <QtGui/QKeyEvent>
|
||||
#include <QtGui/QScrollArea>
|
||||
|
||||
using namespace Find;
|
||||
using namespace Find::Internal;
|
||||
@@ -186,6 +187,19 @@ void FindToolWindow::setCurrentFilter(int index)
|
||||
configWidget->setParent(0);
|
||||
}
|
||||
}
|
||||
QWidget *w = m_ui.configWidget;
|
||||
while (w) {
|
||||
QScrollArea *sa = qobject_cast<QScrollArea *>(w);
|
||||
if (sa) {
|
||||
sa->updateGeometry();
|
||||
break;
|
||||
}
|
||||
w = w->parentWidget();
|
||||
}
|
||||
for (w = m_configWidget ? m_configWidget : m_ui.configWidget; w; w = w->parentWidget()) {
|
||||
if (w->layout())
|
||||
w->layout()->activate();
|
||||
}
|
||||
}
|
||||
|
||||
void FindToolWindow::acceptAndGetParameters(QString *term, IFindFilter **filter)
|
||||
|
||||
Reference in New Issue
Block a user