Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
d327a17c
Commit
d327a17c
authored
Oct 12, 2020
by
Andreas Hartmetz
Browse files
filetree plugin: make filter case insensitive
It's the expected behavior for interactive search.
parent
6bc5bb7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/filetree/katefiletreeplugin.cpp
View file @
d327a17c
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment