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
LibKGAPI
Commits
e7f0634a
Commit
e7f0634a
authored
Sep 24, 2021
by
Laurent Montel
😁
Browse files
Port foreach
parent
636bd289
Pipeline
#82412
passed with stage
in 4 minutes and 8 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
examples/drives/mainwindow.cpp
View file @
e7f0634a
...
...
@@ -328,9 +328,9 @@ void MainWindow::slotDrivesFetchJobFinished(KGAPI2::Job *job)
}
/* Get all items we have received from Google */
KGAPI2
::
ObjectsList
objects
=
fetchJob
->
items
();
const
KGAPI2
::
ObjectsList
objects
=
fetchJob
->
items
();
Q_FOREACH
(
const
KGAPI2
::
ObjectPtr
&
object
,
objects
)
{
for
(
const
KGAPI2
::
ObjectPtr
&
object
:
objects
)
{
const
KGAPI2
::
Drive
::
FilePtr
file
=
object
.
dynamicCast
<
KGAPI2
::
Drive
::
File
>
();
/* Convert the drives to QListWidget item */
...
...
examples/teamdrive/mainwindow.cpp
View file @
e7f0634a
...
...
@@ -271,9 +271,9 @@ void MainWindow::slotTeamdriveFetchJobFinished(KGAPI2::Job *job)
}
/* Get all items we have received from Google */
KGAPI2
::
ObjectsList
objects
=
fetchJob
->
items
();
const
KGAPI2
::
ObjectsList
objects
=
fetchJob
->
items
();
Q_FOREACH
(
const
KGAPI2
::
ObjectPtr
&
object
,
objects
)
{
for
(
const
KGAPI2
::
ObjectPtr
&
object
:
objects
)
{
const
KGAPI2
::
Drive
::
FilePtr
file
=
object
.
dynamicCast
<
KGAPI2
::
Drive
::
File
>
();
/* Convert the teamdrive to QListWidget item */
...
...
Write
Preview
Supports
Markdown
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