Skip to content
GitLab
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
852a2d40
Commit
852a2d40
authored
Dec 28, 2016
by
Laurent Montel
Browse files
Port some Q_FOREACH
parent
deae9bbf
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/editor/generalinfoeditor/mail/mailwidget.cpp
View file @
852a2d40
...
...
@@ -94,7 +94,8 @@ void MailWidget::setMail(const KContacts::Email &email)
if
(
value
.
contains
(
QStringLiteral
(
"PREF"
)))
{
setPreferred
(
true
);
}
Q_FOREACH
(
const
QString
&
type
,
mMailType
->
selectTypeList
())
{
const
QStringList
lst
=
mMailType
->
selectTypeList
();
for
(
const
QString
&
type
:
lst
)
{
if
(
value
.
contains
(
type
))
{
mOldType
=
type
;
mMailType
->
setCurrentIndex
(
mMailType
->
findData
(
type
));
...
...
src/editor/generalinfoeditor/web/webwidget.cpp
View file @
852a2d40
...
...
@@ -147,7 +147,8 @@ void WebWidget::loadWebSite(const KContacts::ResourceLocatorUrl &url)
if
(
value
.
contains
(
QStringLiteral
(
"PREF"
)))
{
setPreferred
(
true
);
}
Q_FOREACH
(
const
QString
&
type
,
mWebType
->
selectTypeList
())
{
const
QStringList
lst
=
mWebType
->
selectTypeList
();
for
(
const
QString
&
type
:
lst
)
{
if
(
value
.
contains
(
type
))
{
mOldType
=
type
;
mWebType
->
setCurrentIndex
(
mWebType
->
findData
(
type
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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