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/testqPrefGeneral.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/testqPrefGeneral.cpp')
-rw-r--r-- | tests/testqPrefGeneral.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/testqPrefGeneral.cpp b/tests/testqPrefGeneral.cpp index 9e87d4289..0265fb59c 100644 --- a/tests/testqPrefGeneral.cpp +++ b/tests/testqPrefGeneral.cpp @@ -239,19 +239,19 @@ void TestQPrefGeneral::test_oldPreferences() void TestQPrefGeneral::test_signals() { - QSignalSpy spy1(qPrefGeneral::instance(), SIGNAL(auto_recalculate_thumbnailsChanged(bool))); - QSignalSpy spy2(qPrefGeneral::instance(), SIGNAL(default_cylinderChanged(QString))); - QSignalSpy spy3(qPrefGeneral::instance(), SIGNAL(default_filenameChanged(QString))); - QSignalSpy spy4(qPrefGeneral::instance(), SIGNAL(default_file_behaviorChanged(def_file_behavior))); - QSignalSpy spy5(qPrefGeneral::instance(), SIGNAL(defaultsetpointChanged(int))); - QSignalSpy spy6(qPrefGeneral::instance(), SIGNAL(extract_video_thumbnailsChanged(bool))); - QSignalSpy spy7(qPrefGeneral::instance(), SIGNAL(extract_video_thumbnails_positionChanged(int))); - QSignalSpy spy8(qPrefGeneral::instance(), SIGNAL(ffmpeg_executableChanged(QString))); - QSignalSpy spy9(qPrefGeneral::instance(), SIGNAL(o2consumptionChanged(int))); - QSignalSpy spy10(qPrefGeneral::instance(), SIGNAL(pscr_ratioChanged(int))); - QSignalSpy spy11(qPrefGeneral::instance(), SIGNAL(use_default_fileChanged(bool))); - QSignalSpy spy12(qPrefGeneral::instance(), SIGNAL(diveshareExport_uidChanged(QString))); - QSignalSpy spy13(qPrefGeneral::instance(), SIGNAL(diveshareExport_privateChanged(bool))); + QSignalSpy spy1(qPrefGeneral::instance(), &qPrefGeneral::auto_recalculate_thumbnailsChanged); + QSignalSpy spy2(qPrefGeneral::instance(), &qPrefGeneral::default_cylinderChanged); + QSignalSpy spy3(qPrefGeneral::instance(), &qPrefGeneral::default_filenameChanged); + QSignalSpy spy4(qPrefGeneral::instance(), &qPrefGeneral::default_file_behaviorChanged); + QSignalSpy spy5(qPrefGeneral::instance(), &qPrefGeneral::defaultsetpointChanged); + QSignalSpy spy6(qPrefGeneral::instance(), &qPrefGeneral::extract_video_thumbnailsChanged); + QSignalSpy spy7(qPrefGeneral::instance(), &qPrefGeneral::extract_video_thumbnails_positionChanged); + QSignalSpy spy8(qPrefGeneral::instance(), &qPrefGeneral::ffmpeg_executableChanged); + QSignalSpy spy9(qPrefGeneral::instance(), &qPrefGeneral::o2consumptionChanged); + QSignalSpy spy10(qPrefGeneral::instance(), &qPrefGeneral::pscr_ratioChanged); + QSignalSpy spy11(qPrefGeneral::instance(), &qPrefGeneral::use_default_fileChanged); + QSignalSpy spy12(qPrefGeneral::instance(), &qPrefGeneral::diveshareExport_uidChanged); + QSignalSpy spy13(qPrefGeneral::instance(), &qPrefGeneral::diveshareExport_privateChanged); prefs.auto_recalculate_thumbnails = true; qPrefGeneral::set_auto_recalculate_thumbnails(false); |