mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
de4e6792c6
commit
fdc2427c43
1 changed files with 9 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue