tests: use new style syntax to connect QSignalSpy

Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
This commit is contained in:
Rolf Eike Beer 2019-03-31 15:02:03 +02:00 committed by Dirk Hohndel
parent 4c26bd5522
commit 2b9ca488fd
13 changed files with 134 additions and 134 deletions

View file

@ -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);