mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
tests: use new style syntax to connect QSignalSpy
Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
This commit is contained in:
parent
4c26bd5522
commit
2b9ca488fd
13 changed files with 134 additions and 134 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue