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/testqPrefProxy.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/testqPrefProxy.cpp')
-rw-r--r-- | tests/testqPrefProxy.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/testqPrefProxy.cpp b/tests/testqPrefProxy.cpp index ed8c3a0ed..0568cd7b5 100644 --- a/tests/testqPrefProxy.cpp +++ b/tests/testqPrefProxy.cpp @@ -174,12 +174,12 @@ void TestQPrefProxy::test_oldPreferences() void TestQPrefProxy::test_signals() { - QSignalSpy spy1(qPrefProxy::instance(), SIGNAL(proxy_authChanged(bool))); - QSignalSpy spy2(qPrefProxy::instance(), SIGNAL(proxy_hostChanged(QString))); - QSignalSpy spy3(qPrefProxy::instance(), SIGNAL(proxy_passChanged(QString))); - QSignalSpy spy4(qPrefProxy::instance(), SIGNAL(proxy_portChanged(int))); - QSignalSpy spy5(qPrefProxy::instance(), SIGNAL(proxy_typeChanged(int))); - QSignalSpy spy6(qPrefProxy::instance(), SIGNAL(proxy_userChanged(QString))); + QSignalSpy spy1(qPrefProxy::instance(), &qPrefProxy::proxy_authChanged); + QSignalSpy spy2(qPrefProxy::instance(), &qPrefProxy::proxy_hostChanged); + QSignalSpy spy3(qPrefProxy::instance(), &qPrefProxy::proxy_passChanged); + QSignalSpy spy4(qPrefProxy::instance(), &qPrefProxy::proxy_portChanged); + QSignalSpy spy5(qPrefProxy::instance(), &qPrefProxy::proxy_typeChanged); + QSignalSpy spy6(qPrefProxy::instance(), &qPrefProxy::proxy_userChanged); prefs.proxy_auth = true; qPrefProxy::set_proxy_auth(false); |