mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
fc39d53232
commit
aa44b67d6b
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue