diff options
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/listfilter.ui (renamed from qt-ui/tagfilter.ui) | 7 | ||||
-rw-r--r-- | qt-ui/simplewidgets.cpp | 5 | ||||
-rw-r--r-- | qt-ui/simplewidgets.h | 2 |
3 files changed, 11 insertions, 3 deletions
diff --git a/qt-ui/tagfilter.ui b/qt-ui/listfilter.ui index 91078ed82..41a8dfa94 100644 --- a/qt-ui/tagfilter.ui +++ b/qt-ui/listfilter.ui @@ -15,6 +15,13 @@ </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> + <widget class="QLabel" name="label"> + <property name="text"> + <string>TextLabel</string> + </property> + </widget> + </item> + <item> <widget class="QLineEdit" name="filterTag"/> </item> <item> diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp index d00fab81e..a5ad49923 100644 --- a/qt-ui/simplewidgets.cpp +++ b/qt-ui/simplewidgets.cpp @@ -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) diff --git a/qt-ui/simplewidgets.h b/qt-ui/simplewidgets.h index 48a57493b..d4eece859 100644 --- a/qt-ui/simplewidgets.h +++ b/qt-ui/simplewidgets.h @@ -137,7 +137,7 @@ public: virtual void showEvent(QShowEvent *); virtual void hideEvent(QHideEvent *); private: - Ui::TagFilter ui; + Ui::FilterWidget ui; }; class MultiFilter : public QScrollArea { |