Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
Akonadi
Commits
32b7adcf
Commit
32b7adcf
authored
Nov 08, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix search account type
parent
82c595a4
Pipeline
#40008
failed with stage
in 60 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/widgets/agenttypedialog.cpp
src/widgets/agenttypedialog.cpp
+9
-1
No files found.
src/widgets/agenttypedialog.cpp
View file @
32b7adcf
...
...
@@ -31,6 +31,7 @@ public:
}
void
readConfig
();
void
writeConfig
()
const
;
void
slotSearchAgentType
(
const
QString
&
str
);
AgentTypeWidget
*
Widget
=
nullptr
;
AgentType
agentType
;
AgentTypeDialog
*
const
q
;
...
...
@@ -51,6 +52,11 @@ void AgentTypeDialog::Private::readConfig()
}
}
void
AgentTypeDialog
::
Private
::
slotSearchAgentType
(
const
QString
&
str
)
{
Widget
->
agentFilterProxyModel
()
->
setFilterRegularExpression
(
str
);
}
AgentTypeDialog
::
AgentTypeDialog
(
QWidget
*
parent
)
:
QDialog
(
parent
)
,
d
(
new
Private
(
this
))
...
...
@@ -63,7 +69,9 @@ AgentTypeDialog::AgentTypeDialog(QWidget *parent)
QLineEdit
*
searchLine
=
new
QLineEdit
(
this
);
layout
->
addWidget
(
searchLine
);
searchLine
->
setClearButtonEnabled
(
true
);
connect
(
searchLine
,
&
QLineEdit
::
textChanged
,
d
->
Widget
->
agentFilterProxyModel
(),
&
AgentFilterProxyModel
::
setFilterFixedString
);
connect
(
searchLine
,
&
QLineEdit
::
textChanged
,
this
,
[
this
](
const
QString
&
str
)
{
d
->
slotSearchAgentType
(
str
);
});
layout
->
addWidget
(
d
->
Widget
);
...
...
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