Commit 8bd54e36 authored by mae's avatar mae
Browse files

Remove more/less-flicker in the projects tab

Fix works at least on Linux.
parent e280c0b5
......@@ -35,6 +35,8 @@
#include <QtGui/QGridLayout>
#include <QtGui/QLabel>
#include <QtGui/QPainter>
#include <QtGui/QScrollArea>
#include <QtGui/QApplication>
namespace Utils {
......@@ -170,6 +172,18 @@ void DetailsWidget::updateControls()
d->m_summaryLabel->setEnabled(d->m_state == Collapsed && d->m_widget);
d->m_detailsButton->setVisible(d->m_state != NoSummary);
d->m_summaryLabel->setVisible(d->m_state != NoSummary);
{
QWidget *w = this;
while (w) {
if (w->layout())
w->layout()->activate();
if (QScrollArea *area = qobject_cast<QScrollArea*>(w)) {
QEvent e(QEvent::LayoutRequest);
QCoreApplication::sendEvent(area, &e);
}
w = w->parentWidget();
}
}
}
QWidget *DetailsWidget::widget() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment