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/testqPrefLanguage.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/testqPrefLanguage.cpp')
-rw-r--r-- | tests/testqPrefLanguage.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/testqPrefLanguage.cpp b/tests/testqPrefLanguage.cpp index f94946e76..96caebd0f 100644 --- a/tests/testqPrefLanguage.cpp +++ b/tests/testqPrefLanguage.cpp @@ -201,14 +201,14 @@ void TestQPrefLanguage::test_oldPreferences() void TestQPrefLanguage::test_signals() { - QSignalSpy spy1(qPrefLanguage::instance(), SIGNAL(date_formatChanged(QString))); - QSignalSpy spy2(qPrefLanguage::instance(), SIGNAL(date_format_overrideChanged(bool))); - QSignalSpy spy3(qPrefLanguage::instance(), SIGNAL(date_format_shortChanged(QString))); - QSignalSpy spy4(qPrefLanguage::instance(), SIGNAL(languageChanged(QString))); - QSignalSpy spy5(qPrefLanguage::instance(), SIGNAL(lang_localeChanged(QString))); - QSignalSpy spy6(qPrefLanguage::instance(), SIGNAL(time_formatChanged(QString))); - QSignalSpy spy7(qPrefLanguage::instance(), SIGNAL(time_format_overrideChanged(bool))); - QSignalSpy spy8(qPrefLanguage::instance(), SIGNAL(use_system_languageChanged(bool))); + QSignalSpy spy1(qPrefLanguage::instance(), &qPrefLanguage::date_formatChanged); + QSignalSpy spy2(qPrefLanguage::instance(), &qPrefLanguage::date_format_overrideChanged); + QSignalSpy spy3(qPrefLanguage::instance(), &qPrefLanguage::date_format_shortChanged); + QSignalSpy spy4(qPrefLanguage::instance(), &qPrefLanguage::languageChanged); + QSignalSpy spy5(qPrefLanguage::instance(), &qPrefLanguage::lang_localeChanged); + QSignalSpy spy6(qPrefLanguage::instance(), &qPrefLanguage::time_formatChanged); + QSignalSpy spy7(qPrefLanguage::instance(), &qPrefLanguage::time_format_overrideChanged); + QSignalSpy spy8(qPrefLanguage::instance(), &qPrefLanguage::use_system_languageChanged); qPrefLanguage::set_date_format("signal date2"); prefs.date_format_override = true; |