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

Add list of include

parent 16a082f1
......@@ -33,6 +33,7 @@ void IncludeFileLineEditTest::shouldHaveDefaultValue()
KSieveUi::IncludeFileLineEdit w;
QCompleter *completer = w.findChild<QCompleter *>(QStringLiteral("completer"));
QVERIFY(completer);
QCOMPARE(completer->caseSensitivity(), Qt::CaseInsensitive);
}
QTEST_MAIN(IncludeFileLineEditTest)
......@@ -18,6 +18,7 @@
*/
#include "includefilelineedit.h"
#include <QStringListModel>
#include <QCompleter>
......@@ -28,7 +29,7 @@ IncludeFileLineEdit::IncludeFileLineEdit(QWidget *parent)
{
mCompleter = new QCompleter(this);
mCompleter->setObjectName(QStringLiteral("completer"));
mCompleter->setCaseSensitivity(Qt::CaseInsensitive);
}
IncludeFileLineEdit::~IncludeFileLineEdit()
......@@ -38,5 +39,5 @@ IncludeFileLineEdit::~IncludeFileLineEdit()
void IncludeFileLineEdit::setStringList(const QStringList &lst)
{
//TODO
mCompleter->setModel(new QStringListModel(lst));
}
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