summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-12-20 07:45:46 +0100
committerMontel Laurent <[email protected]>2017-12-20 07:45:46 +0100
commitbef8fcb6ec1a8efb86f436ff176c32c9df4f6628 (patch)
tree286eb02838d06154f65d5caebb8d75ec0192ffa1
parent000c1779741eb604b719fa48e696a455f38577bd (diff)
Port to new connect api
-rw-r--r--src/pimcommon/translator/autotests/translatortest.cpp2
-rw-r--r--src/pimcommon/widgets/autotests/kactionmenuchangecasetest.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/pimcommon/translator/autotests/translatortest.cpp b/src/pimcommon/translator/autotests/translatortest.cpp
index eddfaae..4e4f315 100644
--- a/src/pimcommon/translator/autotests/translatortest.cpp
+++ b/src/pimcommon/translator/autotests/translatortest.cpp
@@ -114,7 +114,7 @@ void TranslatorTest::shouldEmitTranslatorWasClosedSignalWhenCloseIt()
PimCommon::TranslatorWidget edit;
edit.show();
QVERIFY(QTest::qWaitForWindowExposed(&edit));
- QSignalSpy spy(&edit, SIGNAL(toolsWasClosed()));
+ QSignalSpy spy(&edit, &PimCommon::TranslatorWidget::toolsWasClosed);
QTest::keyClick(&edit, Qt::Key_Escape);
QCOMPARE(spy.count(), 1);
}
diff --git a/src/pimcommon/widgets/autotests/kactionmenuchangecasetest.cpp b/src/pimcommon/widgets/autotests/kactionmenuchangecasetest.cpp
index 793dab6..9b67bab 100644
--- a/src/pimcommon/widgets/autotests/kactionmenuchangecasetest.cpp
+++ b/src/pimcommon/widgets/autotests/kactionmenuchangecasetest.cpp
@@ -43,10 +43,10 @@ void KActionMenuChangeCaseTest::shouldHaveDefaultValue()
void KActionMenuChangeCaseTest::shouldEmitSignals()
{
KActionMenuChangeCase menu;
- QSignalSpy spyUpper(&menu, SIGNAL(upperCase()));
- QSignalSpy spyLower(&menu, SIGNAL(lowerCase()));
- QSignalSpy spySentence(&menu, SIGNAL(sentenceCase()));
- QSignalSpy spyReverse(&menu, SIGNAL(reverseCase()));
+ QSignalSpy spyUpper(&menu, &KActionMenuChangeCase::upperCase);
+ QSignalSpy spyLower(&menu, &KActionMenuChangeCase::lowerCase);
+ QSignalSpy spySentence(&menu, &KActionMenuChangeCase::sentenceCase);
+ QSignalSpy spyReverse(&menu, &KActionMenuChangeCase::reverseCase);
menu.upperCaseAction()->trigger();
menu.lowerCaseAction()->trigger();
menu.sentenceCaseAction()->trigger();