diff options
Diffstat (limited to 'qt-ui/simplewidgets.cpp')
-rw-r--r-- | qt-ui/simplewidgets.cpp | 12 |
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); +} |