summaryrefslogtreecommitdiffstats
path: root/qt-ui/simplewidgets.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-11-11 16:07:45 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-11 13:05:39 -0800
commitaa44b67d6b1e708c7d38d7391cfbacb75ab2ed6e (patch)
tree7d10120c8f95e49ae494f879c43c37e9f710ccb5 /qt-ui/simplewidgets.cpp
parentfc39d5323209436a64a6b41d8a9b019070729a0f (diff)
downloadsubsurface-aa44b67d6b1e708c7d38d7391cfbacb75ab2ed6e.tar.gz
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>
Diffstat (limited to 'qt-ui/simplewidgets.cpp')
-rw-r--r--qt-ui/simplewidgets.cpp5
1 files changed, 4 insertions, 1 deletions
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);
}