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
Unmaintained
KDE Pim
Commits
f45f6996
Commit
f45f6996
authored
Sep 10, 2012
by
Laurent Montel
😁
Browse files
Fix Bug 150410 - configure filter rules: suggest mail field as-you-type
FIXED-IN: 4.9.2 BUG: 150410
parent
dd17578d
Changes
1
Hide whitespace changes
Inline
Side-by-side
mailcommon/searchpatternedit.cpp
View file @
f45f6996
...
...
@@ -112,6 +112,9 @@ void SearchRuleWidget::setHeadersOnly( bool headersOnly )
mRuleField
->
clear
();
mRuleField
->
addItems
(
mFilterFieldList
);
KCompletion
*
comp
=
mRuleField
->
completionObject
();
comp
->
clear
();
comp
->
insertItems
(
mFilterFieldList
);
mRuleField
->
setMaxCount
(
mRuleField
->
count
()
);
mRuleField
->
adjustSize
();
...
...
@@ -138,6 +141,11 @@ void SearchRuleWidget::initWidget()
mRuleField
->
setTrapReturnKey
(
true
);
mRuleField
->
addItems
(
mFilterFieldList
);
KCompletion
*
comp
=
mRuleField
->
completionObject
();
comp
->
setIgnoreCase
(
true
);
comp
->
insertItems
(
mFilterFieldList
);
comp
->
setCompletionMode
(
KGlobalSettings
::
CompletionAuto
);
// don't show sliders when popping up this menu
mRuleField
->
setMaxCount
(
mRuleField
->
count
()
);
mRuleField
->
adjustSize
();
...
...
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