Commit d65e1491 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use new signal/slot connect

parent 14c42e7a
Pipeline #61612 passed with stage
in 53 minutes and 4 seconds
......@@ -45,7 +45,7 @@ void MailMergeWidgetTest::shouldEmitSourceModeChanged()
MailMergeWidget mailmerge;
auto source = mailmerge.findChild<QComboBox *>(QStringLiteral("source"));
QCOMPARE(source->currentIndex(), 0);
QSignalSpy spy(&mailmerge, SIGNAL(sourceModeChanged(MailMerge::MailMergeWidget::SourceType)));
QSignalSpy spy(&mailmerge, &MailMergeWidget::sourceModeChanged);
source->setCurrentIndex(1);
QCOMPARE(spy.count(), 1);
}
......@@ -55,7 +55,7 @@ void MailMergeWidgetTest::shouldDontEmitSourceModeChangedWhenIndexIsInvalid()
MailMergeWidget mailmerge;
auto source = mailmerge.findChild<QComboBox *>(QStringLiteral("source"));
QCOMPARE(source->currentIndex(), 0);
QSignalSpy spy(&mailmerge, SIGNAL(sourceModeChanged(MailMerge::MailMergeWidget::SourceType)));
QSignalSpy spy(&mailmerge, &MailMergeWidget::sourceModeChanged);
source->setCurrentIndex(-1);
QCOMPARE(spy.count(), 0);
}
......
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