From 19ac1dfa0983b98d9cc2680e9553020d1c936bb9 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 31 Oct 2014 15:22:21 -0200 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/simplewidgets.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'qt-ui/simplewidgets.cpp') diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp index b31261518..47952c323 100644 --- a/qt-ui/simplewidgets.cpp +++ b/qt-ui/simplewidgets.cpp @@ -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); +} -- cgit v1.2.3-70-g09d2