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/testqPrefDisplay.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/testqPrefDisplay.cpp')
-rw-r--r-- | tests/testqPrefDisplay.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/tests/testqPrefDisplay.cpp b/tests/testqPrefDisplay.cpp index 7e385896d..32fe1b927 100644 --- a/tests/testqPrefDisplay.cpp +++ b/tests/testqPrefDisplay.cpp @@ -168,22 +168,22 @@ void TestQPrefDisplay::test_multiple() void TestQPrefDisplay::test_signals() { - QSignalSpy spy1(qPrefDisplay::instance(), SIGNAL(animation_speedChanged(int))); - QSignalSpy spy2(qPrefDisplay::instance(), SIGNAL(display_invalid_divesChanged(bool))); - QSignalSpy spy3(qPrefDisplay::instance(), SIGNAL(divelist_fontChanged(QString))); - QSignalSpy spy4(qPrefDisplay::instance(), SIGNAL(font_sizeChanged(double))); - QSignalSpy spy5(qPrefDisplay::instance(), SIGNAL(show_developerChanged(bool))); - QSignalSpy spy6(qPrefDisplay::instance(), SIGNAL(themeChanged(QString))); - QSignalSpy spy7(qPrefDisplay::instance(), SIGNAL(lastDirChanged(QString))); - QSignalSpy spy8(qPrefDisplay::instance(), SIGNAL(tooltip_positionChanged(QPointF))); - QSignalSpy spy9(qPrefDisplay::instance(), SIGNAL(userSurveyChanged(QString))); - QSignalSpy spy10(qPrefDisplay::instance(), SIGNAL(mainSplitterChanged(QByteArray))); - QSignalSpy spy11(qPrefDisplay::instance(), SIGNAL(topSplitterChanged(QByteArray))); - QSignalSpy spy12(qPrefDisplay::instance(), SIGNAL(bottomSplitterChanged(QByteArray))); - QSignalSpy spy13(qPrefDisplay::instance(), SIGNAL(maximizedChanged(bool))); - QSignalSpy spy14(qPrefDisplay::instance(), SIGNAL(geometryChanged(QByteArray))); - QSignalSpy spy15(qPrefDisplay::instance(), SIGNAL(windowStateChanged(QByteArray))); - QSignalSpy spy16(qPrefDisplay::instance(), SIGNAL(lastStateChanged(int))); + QSignalSpy spy1(qPrefDisplay::instance(), &qPrefDisplay::animation_speedChanged); + QSignalSpy spy2(qPrefDisplay::instance(), &qPrefDisplay::display_invalid_divesChanged); + QSignalSpy spy3(qPrefDisplay::instance(), &qPrefDisplay::divelist_fontChanged); + QSignalSpy spy4(qPrefDisplay::instance(), &qPrefDisplay::font_sizeChanged); + QSignalSpy spy5(qPrefDisplay::instance(), &qPrefDisplay::show_developerChanged); + QSignalSpy spy6(qPrefDisplay::instance(), &qPrefDisplay::themeChanged); + QSignalSpy spy7(qPrefDisplay::instance(), &qPrefDisplay::lastDirChanged); + QSignalSpy spy8(qPrefDisplay::instance(), &qPrefDisplay::tooltip_positionChanged); + QSignalSpy spy9(qPrefDisplay::instance(), &qPrefDisplay::userSurveyChanged); + QSignalSpy spy10(qPrefDisplay::instance(), &qPrefDisplay::mainSplitterChanged); + QSignalSpy spy11(qPrefDisplay::instance(), &qPrefDisplay::topSplitterChanged); + QSignalSpy spy12(qPrefDisplay::instance(), &qPrefDisplay::bottomSplitterChanged); + QSignalSpy spy13(qPrefDisplay::instance(), &qPrefDisplay::maximizedChanged); + QSignalSpy spy14(qPrefDisplay::instance(), &qPrefDisplay::geometryChanged); + QSignalSpy spy15(qPrefDisplay::instance(), &qPrefDisplay::windowStateChanged); + QSignalSpy spy16(qPrefDisplay::instance(), &qPrefDisplay::lastStateChanged); qPrefDisplay::set_animation_speed(1); qPrefDisplay::set_display_invalid_dives(false); |