summaryrefslogtreecommitdiffstats
path: root/tests/testqPrefUpdateManager.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/testqPrefUpdateManager.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/testqPrefUpdateManager.cpp')
-rw-r--r--tests/testqPrefUpdateManager.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/testqPrefUpdateManager.cpp b/tests/testqPrefUpdateManager.cpp
index f11505654..259813cbe 100644
--- a/tests/testqPrefUpdateManager.cpp
+++ b/tests/testqPrefUpdateManager.cpp
@@ -166,11 +166,11 @@ void TestQPrefUpdateManager::test_oldPreferences()
void TestQPrefUpdateManager::test_signals()
{
- QSignalSpy spy1(qPrefUpdateManager::instance(), SIGNAL(dont_check_for_updatesChanged(bool)));
- QSignalSpy spy2(qPrefUpdateManager::instance(), SIGNAL(dont_check_existsChanged(bool)));
- QSignalSpy spy3(qPrefUpdateManager::instance(), SIGNAL(last_version_usedChanged(QString)));
- QSignalSpy spy4(qPrefUpdateManager::instance(), SIGNAL(next_checkChanged(QDate)));
- QSignalSpy spy5(qPrefUpdateManager::instance(), SIGNAL(uuidStringChanged(QString)));
+ QSignalSpy spy1(qPrefUpdateManager::instance(), &qPrefUpdateManager::dont_check_for_updatesChanged);
+ QSignalSpy spy2(qPrefUpdateManager::instance(), &qPrefUpdateManager::dont_check_existsChanged);
+ QSignalSpy spy3(qPrefUpdateManager::instance(), &qPrefUpdateManager::last_version_usedChanged);
+ QSignalSpy spy4(qPrefUpdateManager::instance(), &qPrefUpdateManager::next_checkChanged);
+ QSignalSpy spy5(qPrefUpdateManager::instance(), &qPrefUpdateManager::uuidStringChanged);
prefs.update_manager.dont_check_for_updates = true;
qPrefUpdateManager::set_dont_check_for_updates(false);