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

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