Commit 8745e681 authored by Laurent Montel's avatar Laurent Montel 😁

Don't use deprecated method

parent 29dcc675
......@@ -59,7 +59,7 @@ void ServerSieveSettingsTest::shouldEmitEnableOkButtonSignal()
{
ServerSieveSettings widget;
widget.show();
QTest::qWaitForWindowShown(&widget);
QTest::qWaitForWindowExposed(&widget);
QSignalSpy spy(&widget, SIGNAL(enableOkButton(bool)));
widget.setPassword(QStringLiteral("foo"));
QCOMPARE(spy.count(), 0);
......@@ -82,7 +82,7 @@ void ServerSieveSettingsTest::shouldEmitSignalWithValueTrue()
{
ServerSieveSettings widget;
widget.show();
QTest::qWaitForWindowShown(&widget);
QTest::qWaitForWindowExposed(&widget);
QSignalSpy spy(&widget, SIGNAL(enableOkButton(bool)));
widget.setServerName(QStringLiteral("foo"));
QCOMPARE(spy.count(), 1);
......
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