summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-08-16 22:39:08 +0200
committerMontel Laurent <[email protected]>2017-08-16 22:39:08 +0200
commit9e12db88b37b2a4e88111006d89d4af68ec20ff5 (patch)
tree9d164aa0be28ccb81ef9b7847309eb0c725988dc
parentc91441ab80da4e4db10ef0fa78f4297153779e2a (diff)
Fix crash
-rw-r--r--src/ksieveui/editor/webengine/findbar/autotests/findbarbasetest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ksieveui/editor/webengine/findbar/autotests/findbarbasetest.cpp b/src/ksieveui/editor/webengine/findbar/autotests/findbarbasetest.cpp
index ce574d6..b005db1 100644
--- a/src/ksieveui/editor/webengine/findbar/autotests/findbarbasetest.cpp
+++ b/src/ksieveui/editor/webengine/findbar/autotests/findbarbasetest.cpp
@@ -20,7 +20,7 @@
#include "findbarbasetest.h"
#include "../findbarbase.h"
-#include <KLineEdit>
+#include <PimCommon/LineEditWithCompleterNg>
#include <QLabel>
#include <QPushButton>
#include <QToolButton>
@@ -54,7 +54,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());
}
@@ -67,7 +67,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());
@@ -106,7 +106,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());
}