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
7c68aa0c
Commit
7c68aa0c
authored
Dec 18, 2016
by
Laurent Montel
Browse files
port some q_foreach
parent
d4428c86
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/contactstreemodel.cpp
View file @
7c68aa0c
...
...
@@ -131,7 +131,7 @@ QVariant ContactsTreeModel::entityData(const Item &item, int column, int role) c
QStringList
values
;
const
KContacts
::
PhoneNumber
::
List
numbers
=
contact
.
phoneNumbers
();
for
each
(
const
KContacts
::
PhoneNumber
&
number
,
numbers
)
{
for
(
const
KContacts
::
PhoneNumber
&
number
:
numbers
)
{
values
+=
number
.
number
();
}
...
...
src/editor/widgets/imagewidget.cpp
View file @
7c68aa0c
...
...
@@ -302,7 +302,7 @@ void ImageWidget::changeImage()
const
QList
<
QByteArray
>
supportedImage
=
QImageReader
::
supportedImageFormats
();
QString
filter
;
Q_FOREACH
(
const
QByteArray
&
ba
,
supportedImage
)
{
for
(
const
QByteArray
&
ba
:
supportedImage
)
{
if
(
!
filter
.
isEmpty
())
{
filter
+=
QLatin1Char
(
' '
);
}
...
...
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