diff options
-rw-r--r-- | desktop-widgets/filterwidget2.cpp | 9 | ||||
-rw-r--r-- | desktop-widgets/filterwidget2.h | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/desktop-widgets/filterwidget2.cpp b/desktop-widgets/filterwidget2.cpp index 77cefa5a8..24a66513e 100644 --- a/desktop-widgets/filterwidget2.cpp +++ b/desktop-widgets/filterwidget2.cpp @@ -6,7 +6,9 @@ #include <QDoubleSpinBox> -FilterWidget2::FilterWidget2(QWidget* parent) : QWidget(parent), ignoreSignal(false) +FilterWidget2::FilterWidget2(QWidget* parent) : + QWidget(parent), + ignoreSignal(false) { ui.setupUi(this); @@ -231,3 +233,8 @@ void FilterWidget2::countsChanged() ui.filterText->setText(tr("%L1/%L2 shown").arg(MultiFilterSortModel::instance()->divesDisplayed) .arg(dive_table.nr)); } + +bool FilterWidget2::isActive() const +{ + return filterData.validFilter; +} diff --git a/desktop-widgets/filterwidget2.h b/desktop-widgets/filterwidget2.h index e07259de7..d974fb78f 100644 --- a/desktop-widgets/filterwidget2.h +++ b/desktop-widgets/filterwidget2.h @@ -35,6 +35,7 @@ private slots: private: bool ignoreSignal; + bool isActive() const; Ui::FilterWidget2 ui; void filterDataChanged(const FilterData &data); FilterData filterData; |