Coding style: unify connect() calls in filterwidget2.cpp

The connect() calls had different styles. Unify them to the one
that was used the most.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-01-22 09:38:57 +01:00 committed by Dirk Hohndel
parent de4e6792c6
commit fdc2427c43

View file

@ -92,13 +92,18 @@ FilterWidget2::FilterWidget2(QWidget* parent) : QWidget(parent), ignoreSignal(fa
connect(ui.locationNegate, &QToolButton::toggled,
this, &FilterWidget2::updateFilter);
connect(ui.logged, SIGNAL(stateChanged(int)), this, SLOT(updateLogged(int)));
connect(ui.logged, &QCheckBox::stateChanged,
this, &FilterWidget2::updateLogged);
connect(ui.planned, SIGNAL(stateChanged(int)), this, SLOT(updatePlanned(int)));
connect(ui.planned, &QCheckBox::stateChanged,
this, &FilterWidget2::updatePlanned);
// Update temperature fields if user changes temperature-units in preferences.
connect(qPrefUnits::instance(), &qPrefUnits::temperatureChanged, this, &FilterWidget2::temperatureChanged);
connect(qPrefUnits::instance(), &qPrefUnits::unit_systemChanged, this, &FilterWidget2::temperatureChanged);
connect(qPrefUnits::instance(), &qPrefUnits::temperatureChanged,
this, &FilterWidget2::temperatureChanged);
connect(qPrefUnits::instance(), &qPrefUnits::unit_systemChanged,
this, &FilterWidget2::temperatureChanged);
// Update counts if dives were added / removed
connect(MultiFilterSortModel::instance(), &MultiFilterSortModel::countsChanged,