From 2b9ca488fd18dc9d65d42dc5900e120a07e5b3f6 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Sun, 31 Mar 2019 15:02:03 +0200 Subject: tests: use new style syntax to connect QSignalSpy Signed-off-by: Rolf Eike Beer --- tests/testqPrefDiveComputer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/testqPrefDiveComputer.cpp') diff --git a/tests/testqPrefDiveComputer.cpp b/tests/testqPrefDiveComputer.cpp index 8a05db8fb..fff589c17 100644 --- a/tests/testqPrefDiveComputer.cpp +++ b/tests/testqPrefDiveComputer.cpp @@ -138,10 +138,10 @@ void TestQPrefDiveComputer::test_oldPreferences() void TestQPrefDiveComputer::test_signals() { - QSignalSpy spy1(qPrefDiveComputer::instance(), SIGNAL(deviceChanged(QString))); - QSignalSpy spy2(qPrefDiveComputer::instance(), SIGNAL(device_nameChanged(QString))); - QSignalSpy spy4(qPrefDiveComputer::instance(), SIGNAL(productChanged(QString))); - QSignalSpy spy5(qPrefDiveComputer::instance(), SIGNAL(vendorChanged(QString))); + QSignalSpy spy1(qPrefDiveComputer::instance(), &qPrefDiveComputer::deviceChanged); + QSignalSpy spy2(qPrefDiveComputer::instance(), &qPrefDiveComputer::device_nameChanged); + QSignalSpy spy4(qPrefDiveComputer::instance(), &qPrefDiveComputer::productChanged); + QSignalSpy spy5(qPrefDiveComputer::instance(), &qPrefDiveComputer::vendorChanged); qPrefDiveComputer::set_device("t_signal device"); qPrefDiveComputer::set_device_name("t_signal device name"); -- cgit v1.2.3-70-g09d2