From aa44b67d6b1e708c7d38d7391cfbacb75ab2ed6e Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 11 Nov 2014 16:07:45 -0200 Subject: Better size for the filter a bit of extra spacing was necessary to get rid of the scrollbar. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/simplewidgets.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp index 522ed30e9..8af834d4d 100644 --- a/qt-ui/simplewidgets.cpp +++ b/qt-ui/simplewidgets.cpp @@ -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); } -- cgit v1.2.3-70-g09d2