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
PIM
Akonadi Contacts
Commits
bca22ddb
Verified
Commit
bca22ddb
authored
Aug 14, 2021
by
Carl Schwan
🚴
Browse files
Search with name and email address in group contact editor
BUG: 430788
parent
6e9dcf4e
Pipeline
#74826
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/akonadi-contacts/contactgroupeditordelegate.cpp
View file @
bca22ddb
...
@@ -127,7 +127,7 @@ QWidget *ContactGroupEditorDelegate::createEditor(QWidget *parent, const QStyleO
...
@@ -127,7 +127,7 @@ QWidget *ContactGroupEditorDelegate::createEditor(QWidget *parent, const QStyleO
const
bool
isReference
=
index
.
data
(
ContactGroupModel
::
IsReferenceRole
).
toBool
();
const
bool
isReference
=
index
.
data
(
ContactGroupModel
::
IsReferenceRole
).
toBool
();
Q_UNUSED
(
option
)
Q_UNUSED
(
option
)
if
(
index
.
column
()
==
0
)
{
if
(
index
.
column
()
==
0
)
{
auto
edit
=
new
ContactLineEdit
(
isReference
,
ContactCompletionModel
::
EmailColumn
,
parent
);
auto
edit
=
new
ContactLineEdit
(
isReference
,
ContactCompletionModel
::
NameAnd
EmailColumn
,
parent
);
connect
(
edit
,
QOverload
<
QWidget
*>::
of
(
&
ContactLineEdit
::
completed
),
this
,
&
ContactGroupEditorDelegate
::
completed
);
connect
(
edit
,
QOverload
<
QWidget
*>::
of
(
&
ContactLineEdit
::
completed
),
this
,
&
ContactGroupEditorDelegate
::
completed
);
return
edit
;
return
edit
;
...
@@ -138,7 +138,7 @@ QWidget *ContactGroupEditorDelegate::createEditor(QWidget *parent, const QStyleO
...
@@ -138,7 +138,7 @@ QWidget *ContactGroupEditorDelegate::createEditor(QWidget *parent, const QStyleO
comboBox
->
setAutoFillBackground
(
true
);
comboBox
->
setAutoFillBackground
(
true
);
return
comboBox
;
return
comboBox
;
}
else
{
}
else
{
auto
edit
=
new
ContactLineEdit
(
isReference
,
ContactCompletionModel
::
EmailColumn
,
parent
);
auto
edit
=
new
ContactLineEdit
(
isReference
,
ContactCompletionModel
::
NameAnd
EmailColumn
,
parent
);
connect
(
edit
,
QOverload
<
QWidget
*>::
of
(
&
ContactLineEdit
::
completed
),
this
,
&
ContactGroupEditorDelegate
::
completed
);
connect
(
edit
,
QOverload
<
QWidget
*>::
of
(
&
ContactLineEdit
::
completed
),
this
,
&
ContactGroupEditorDelegate
::
completed
);
return
edit
;
return
edit
;
}
}
...
...
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