diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2019-03-31 15:02:03 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-12 12:59:17 +0300 |
commit | 2b9ca488fd18dc9d65d42dc5900e120a07e5b3f6 (patch) | |
tree | b1aa85f5353b58f0d8ff903fa3e4cd86a054c948 /tests/testqPrefLocationService.cpp | |
parent | 4c26bd55229de8378fb4a63b885ba6e9b9fe4f91 (diff) | |
download | subsurface-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/testqPrefLocationService.cpp')
-rw-r--r-- | tests/testqPrefLocationService.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testqPrefLocationService.cpp b/tests/testqPrefLocationService.cpp index 0f383212c..4e0d410cb 100644 --- a/tests/testqPrefLocationService.cpp +++ b/tests/testqPrefLocationService.cpp @@ -117,8 +117,8 @@ void TestQPrefLocationService::test_oldPreferences() void TestQPrefLocationService::test_signals() { - QSignalSpy spy1(qPrefLocationService::instance(), SIGNAL(distance_thresholdChanged(int))); - QSignalSpy spy2(qPrefLocationService::instance(), SIGNAL(time_thresholdChanged(int))); + QSignalSpy spy1(qPrefLocationService::instance(), &qPrefLocationService::distance_thresholdChanged); + QSignalSpy spy2(qPrefLocationService::instance(), &qPrefLocationService::time_thresholdChanged); qPrefLocationService::set_distance_threshold(-2000); qPrefLocationService::set_time_threshold(-90); |