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
Graphics
Okular
Commits
e2ece379
Commit
e2ece379
authored
Sep 24, 2020
by
Albert Astals Cid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port use of deprecated QModelIndex::child
parent
837a9c1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
ui/side_reviews.cpp
ui/side_reviews.cpp
+4
-3
No files found.
ui/side_reviews.cpp
View file @
e2ece379
...
...
@@ -262,10 +262,11 @@ QModelIndexList Reviews::retrieveAnnotations(const QModelIndex &idx) const
{
QModelIndexList
ret
;
if
(
idx
.
isValid
())
{
if
(
idx
.
model
()
->
hasChildren
(
idx
))
{
int
rowCount
=
idx
.
model
()
->
rowCount
(
idx
);
const
QAbstractItemModel
*
model
=
idx
.
model
();
if
(
model
->
hasChildren
(
idx
))
{
int
rowCount
=
model
->
rowCount
(
idx
);
for
(
int
i
=
0
;
i
<
rowCount
;
i
++
)
{
ret
+=
retrieveAnnotations
(
idx
.
child
(
i
,
idx
.
column
()));
ret
+=
retrieveAnnotations
(
model
->
index
(
i
,
idx
.
column
()
,
idx
));
}
}
else
{
ret
+=
idx
;
...
...
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