summaryrefslogtreecommitdiffstats
path: root/qt-ui/simplewidgets.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-10-31 15:22:21 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-31 13:52:51 -0700
commit19ac1dfa0983b98d9cc2680e9553020d1c936bb9 (patch)
tree528c3758a290ff49e9b87981373aad0ca327d34a /qt-ui/simplewidgets.cpp
parent063e6d9fbf221cac4d0f5be314c4f7c005e805b1 (diff)
downloadsubsurface-19ac1dfa0983b98d9cc2680e9553020d1c936bb9.tar.gz
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>
Diffstat (limited to 'qt-ui/simplewidgets.cpp')
-rw-r--r--qt-ui/simplewidgets.cpp12
1 files changed, 12 insertions, 0 deletions
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);
+}