From fdc2427c43df0172bed895d7061ac7dc2278e459 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 22 Jan 2019 09:38:57 +0100 Subject: [PATCH] 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 --- desktop-widgets/filterwidget2.cpp | 13 +++++++++---- 1 file 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,