Better size for the filter

a bit of extra spacing was necessary to get rid of the scrollbar.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-11-11 16:07:45 -02:00 committed by Dirk Hohndel
parent fc39d53232
commit aa44b67d6b

View file

@ -531,10 +531,13 @@ void LocationFilter::hideEvent(QHideEvent *event)
MultiFilterSortModel::instance()->removeFilterModel(LocationFilterModel::instance());
QWidget::hideEvent(event);
}
MultiFilter::MultiFilter(QWidget *parent) : QScrollArea(parent)
{
QWidget *w = new QWidget();
QHBoxLayout *l = new QHBoxLayout();
QVBoxLayout *v = new QVBoxLayout();
TagFilter *tagFilter = new TagFilter();
int minimumHeight = tagFilter->ui.filterInternalList->height() +
@ -554,5 +557,5 @@ MultiFilter::MultiFilter(QWidget *parent) : QScrollArea(parent)
setWidget(w);
w->resize(w->width(), minimumHeight + dummyList->sizeHintForRow(0) * 5 );
setMinimumHeight(w->height());
setMinimumHeight(w->height() + 5);
}