Commit bef8fcb6 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent 000c1779
......@@ -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);
}
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment