mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Added a 'MultiFilter' widget.
The multifilter widget is a container with all the filter widgets inside of it. currently there's just one. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
063e6d9fbf
commit
19ac1dfa09
4 changed files with 22 additions and 4 deletions
|
|
@ -476,3 +476,15 @@ void TagFilter::hideEvent(QHideEvent *event)
|
|||
TagFilterSortModel::instance()->removeFilterModel(TagFilterModel::instance());
|
||||
QWidget::hideEvent(event);
|
||||
}
|
||||
|
||||
MultiFilter::MultiFilter(QWidget *parent): QScrollArea(parent)
|
||||
{
|
||||
QWidget *w = new QWidget();
|
||||
QHBoxLayout *l = new QHBoxLayout();
|
||||
|
||||
l->addWidget(new TagFilter());
|
||||
|
||||
w->setLayout(l);
|
||||
w->setMinimumSize(l->count() * 150, 200);
|
||||
setWidget(w);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue