From 2b9ca488fd18dc9d65d42dc5900e120a07e5b3f6 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Sun, 31 Mar 2019 15:02:03 +0200 Subject: tests: use new style syntax to connect QSignalSpy Signed-off-by: Rolf Eike Beer --- tests/testqPrefLocationService.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/testqPrefLocationService.cpp') 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); -- cgit v1.2.3-70-g09d2