From 50caf38694dec1765ee08f7fa72c867e5836073f Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 11 Feb 2020 07:54:46 +0100 Subject: Filter: update filter if any of the string-modes changed Simply hook the corresponding signals to the update-filter slot. Signed-off-by: Berthold Stoeger --- desktop-widgets/filterwidget2.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'desktop-widgets/filterwidget2.cpp') diff --git a/desktop-widgets/filterwidget2.cpp b/desktop-widgets/filterwidget2.cpp index da20fc45c..2df96062f 100644 --- a/desktop-widgets/filterwidget2.cpp +++ b/desktop-widgets/filterwidget2.cpp @@ -84,30 +84,45 @@ FilterWidget2::FilterWidget2(QWidget* parent) : connect(ui.tagsMode, QOverload::of(&QComboBox::currentIndexChanged), this, &FilterWidget2::updateFilter); + connect(ui.tagsStringMode, QOverload::of(&QComboBox::currentIndexChanged), + this, &FilterWidget2::updateFilter); + connect(ui.people, &QLineEdit::textChanged, this, &FilterWidget2::updateFilter); connect(ui.peopleMode, QOverload::of(&QComboBox::currentIndexChanged), this, &FilterWidget2::updateFilter); + connect(ui.peopleStringMode, QOverload::of(&QComboBox::currentIndexChanged), + this, &FilterWidget2::updateFilter); + connect(ui.location, &QLineEdit::textChanged, this, &FilterWidget2::updateFilter); connect(ui.locationMode, QOverload::of(&QComboBox::currentIndexChanged), this, &FilterWidget2::updateFilter); + connect(ui.locationStringMode, QOverload::of(&QComboBox::currentIndexChanged), + this, &FilterWidget2::updateFilter); + connect(ui.suit, &QLineEdit::textChanged, this, &FilterWidget2::updateFilter); connect(ui.suitMode, QOverload::of(&QComboBox::currentIndexChanged), this, &FilterWidget2::updateFilter); + connect(ui.suitStringMode, QOverload::of(&QComboBox::currentIndexChanged), + this, &FilterWidget2::updateFilter); + connect(ui.dnotes, &QLineEdit::textChanged, this, &FilterWidget2::updateFilter); connect(ui.dnotesMode, static_cast(&QComboBox::currentIndexChanged), this, &FilterWidget2::updateFilter); + connect(ui.dnotesStringMode, static_cast(&QComboBox::currentIndexChanged), + this, &FilterWidget2::updateFilter); + connect(ui.logged, &QCheckBox::stateChanged, this, &FilterWidget2::updateLogged); -- cgit v1.2.3-70-g09d2