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

Fix autotest

parent 189fe9e4
......@@ -26,6 +26,7 @@
#include <QToolButton>
#include <qtest.h>
#include <QSignalSpy>
#include <PimCommon/LineEditWithCompleterNg>
FindBarBaseTest::FindBarBaseTest(QObject *parent)
: QObject(parent)
......@@ -56,7 +57,7 @@ void FindBarBaseTest::shouldHaveDefaultValue()
QToolButton *close = bar.findChild<QToolButton *>(QStringLiteral("close"));
QVERIFY(close);
KLineEdit *lineedit = bar.findChild<KLineEdit *>(QStringLiteral("searchline"));
PimCommon::LineEditWithCompleterNg *lineedit = bar.findChild<PimCommon::LineEditWithCompleterNg *>(QStringLiteral("searchline"));
QVERIFY(lineedit);
QVERIFY(lineedit->text().isEmpty());
}
......@@ -70,7 +71,7 @@ void FindBarBaseTest::shouldClearLineWhenClose()
QTest::qWaitForWindowExposed(&bar);
QVERIFY(bar.isVisible());
bar.focusAndSetCursor();
KLineEdit *lineedit = bar.findChild<KLineEdit *>(QStringLiteral("searchline"));
PimCommon::LineEditWithCompleterNg *lineedit = bar.findChild<PimCommon::LineEditWithCompleterNg *>(QStringLiteral("searchline"));
lineedit->setText(QStringLiteral("FOO"));
QVERIFY(!lineedit->text().isEmpty());
QVERIFY(lineedit->hasFocus());
......@@ -111,7 +112,7 @@ void FindBarBaseTest::shouldClearAllWhenShowBar()
bar.show();
bar.focusAndSetCursor();
KLineEdit *lineedit = bar.findChild<KLineEdit *>(QStringLiteral("searchline"));
PimCommon::LineEditWithCompleterNg *lineedit = bar.findChild<PimCommon::LineEditWithCompleterNg *>(QStringLiteral("searchline"));
QVERIFY(lineedit->hasFocus());
QVERIFY(status->text().isEmpty());
}
......
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