diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-01-22 09:38:57 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-01-26 11:13:01 -0800 |
commit | fdc2427c43df0172bed895d7061ac7dc2278e459 (patch) | |
tree | e5b16c8cc41bdc6de575c3310e2a2640ff4e02b5 /desktop-widgets/filterwidget2.cpp | |
parent | de4e6792c67992747d3deecd080ca95a7b15e81d (diff) | |
download | subsurface-fdc2427c43df0172bed895d7061ac7dc2278e459.tar.gz |
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>
Diffstat (limited to 'desktop-widgets/filterwidget2.cpp')
-rw-r--r-- | desktop-widgets/filterwidget2.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/desktop-widgets/filterwidget2.cpp b/desktop-widgets/filterwidget2.cpp index 71e7de83d..ec82ba8f8 100644 --- a/desktop-widgets/filterwidget2.cpp +++ b/desktop-widgets/filterwidget2.cpp @@ -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, |