tagfilter.ui -> filterwidget.ui

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-10-31 15:40:57 -02:00 committed by Dirk Hohndel
parent c68a94da6a
commit c47972a189
4 changed files with 12 additions and 4 deletions

View file

@ -459,10 +459,11 @@ void DiveComponentSelection::buttonClicked(QAbstractButton *button)
TagFilter::TagFilter(QWidget *parent) : QWidget(parent)
{
ui.setupUi(this);
ui.label->setText(tr("Tags: "));
QSortFilterProxyModel *filter = new QSortFilterProxyModel();
filter->setSourceModel(TagFilterModel::instance());
connect(ui.filterTag, SIGNAL(textChanged(QString)), filter, SLOT(setFilterFixedString(QString)));
ui.tagView->setModel(filter);
connect(ui.filterInternalList, SIGNAL(textChanged(QString)), filter, SLOT(setFilterFixedString(QString)));
ui.filterList->setModel(filter);
}
void TagFilter::showEvent(QShowEvent *event)