summaryrefslogtreecommitdiffstats
path: root/tests/testqPrefUnits.cpp
diff options
context:
space:
mode:
authorGravatar Rolf Eike Beer <eike@sf-mail.de>2019-03-31 15:02:03 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-12 12:59:17 +0300
commit2b9ca488fd18dc9d65d42dc5900e120a07e5b3f6 (patch)
treeb1aa85f5353b58f0d8ff903fa3e4cd86a054c948 /tests/testqPrefUnits.cpp
parent4c26bd55229de8378fb4a63b885ba6e9b9fe4f91 (diff)
downloadsubsurface-2b9ca488fd18dc9d65d42dc5900e120a07e5b3f6.tar.gz
tests: use new style syntax to connect QSignalSpy
Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
Diffstat (limited to 'tests/testqPrefUnits.cpp')
-rw-r--r--tests/testqPrefUnits.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/testqPrefUnits.cpp b/tests/testqPrefUnits.cpp
index a3416e1f2..122a35ce9 100644
--- a/tests/testqPrefUnits.cpp
+++ b/tests/testqPrefUnits.cpp
@@ -236,15 +236,15 @@ void TestQPrefUnits::test_oldPreferences()
void TestQPrefUnits::test_signals()
{
- QSignalSpy spy1(qPrefUnits::instance(), SIGNAL(coordinates_traditionalChanged(bool)));
- QSignalSpy spy2(qPrefUnits::instance(), SIGNAL(duration_unitsChanged(int)));
- QSignalSpy spy3(qPrefUnits::instance(), SIGNAL(lengthChanged(int)));
- QSignalSpy spy4(qPrefUnits::instance(), SIGNAL(pressureChanged(int)));
- QSignalSpy spy5(qPrefUnits::instance(), SIGNAL(show_units_tableChanged(bool)));
- QSignalSpy spy6(qPrefUnits::instance(), SIGNAL(temperatureChanged(int)));
- QSignalSpy spy7(qPrefUnits::instance(), SIGNAL(vertical_speed_timeChanged(int)));
- QSignalSpy spy8(qPrefUnits::instance(), SIGNAL(volumeChanged(int)));
- QSignalSpy spy9(qPrefUnits::instance(), SIGNAL(weightChanged(int)));
+ QSignalSpy spy1(qPrefUnits::instance(), &qPrefUnits::coordinates_traditionalChanged);
+ QSignalSpy spy2(qPrefUnits::instance(), &qPrefUnits::duration_unitsChanged);
+ QSignalSpy spy3(qPrefUnits::instance(), &qPrefUnits::lengthChanged);
+ QSignalSpy spy4(qPrefUnits::instance(), &qPrefUnits::pressureChanged);
+ QSignalSpy spy5(qPrefUnits::instance(), &qPrefUnits::show_units_tableChanged);
+ QSignalSpy spy6(qPrefUnits::instance(), &qPrefUnits::temperatureChanged);
+ QSignalSpy spy7(qPrefUnits::instance(), &qPrefUnits::vertical_speed_timeChanged);
+ QSignalSpy spy8(qPrefUnits::instance(), &qPrefUnits::volumeChanged);
+ QSignalSpy spy9(qPrefUnits::instance(), &qPrefUnits::weightChanged);
prefs.coordinates_traditional = true;
qPrefUnits::set_coordinates_traditional(false);