mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Implement the TagFilter model.
This model accepts check / unchedk. Now, I need to also plug the result of the check / uncheck to the list model. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7a90b9d764
commit
a6e9a1eab5
4 changed files with 71 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include <QFileDialog>
|
||||
#include <QShortcut>
|
||||
#include <QCalendarWidget>
|
||||
#include <QSortFilterProxyModel>
|
||||
#include "exif.h"
|
||||
#include "dive.h"
|
||||
#include "file.h"
|
||||
|
|
@ -459,4 +460,8 @@ void DiveComponentSelection::buttonClicked(QAbstractButton *button)
|
|||
TagFilter::TagFilter(QWidget *parent): QWidget(parent)
|
||||
{
|
||||
ui.setupUi(this);
|
||||
QSortFilterProxyModel *filter = new QSortFilterProxyModel();
|
||||
filter->setSourceModel(TagFilterModel::instance());
|
||||
connect(ui.filterTag, SIGNAL(textChanged(QString)), filter, SLOT(setFilterFixedString(QString)));
|
||||
ui.tagView->setModel(filter);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue