Commit d327a17c authored by Andreas Hartmetz's avatar Andreas Hartmetz

filetree plugin: make filter case insensitive

It's the expected behavior for interactive search.
parent 6bc5bb7c
Pipeline #38732 failed with stages
in 2 minutes and 58 seconds
......@@ -156,7 +156,7 @@ KateFileTreePluginView::KateFileTreePluginView(KTextEditor::MainWindow *mainWind
m_filter->setPlaceholderText(QStringLiteral("Filter..."));
m_filter->setClearButtonEnabled(true);
connect(m_filter, &QLineEdit::textChanged, this, [this](const QString &text) {
m_proxyModel->setFilterRegularExpression(text);
m_proxyModel->setFilterRegularExpression(QRegularExpression(text, QRegularExpression::CaseInsensitiveOption));
if (!text.isEmpty()) {
QTimer::singleShot(100, m_fileTree, &QTreeView::expandAll);
}
......
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