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
Graphics
Gwenview
Commits
9ee0a363
Commit
9ee0a363
authored
Nov 18, 2020
by
Friedrich W. H. Kossebau
Browse files
Port away from deprecated QString::SkipEmptyParts flag
parent
4793f94d
Changes
1
Show whitespace changes
Inline
Side-by-side
app/folderviewcontextmanageritem.cpp
View file @
9ee0a363
...
...
@@ -252,7 +252,11 @@ QModelIndex FolderViewContextManagerItem::findClosestIndex(const QModelIndex& pa
QString
relativePath
=
QDir
(
url
.
path
()).
relativeFilePath
(
wantedUrl
.
path
());
QModelIndex
lastFoundIndex
=
index
;
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
const
QStringList
relativePathList
=
relativePath
.
split
(
QDir
::
separator
(),
Qt
::
SkipEmptyParts
);
#else
const
QStringList
relativePathList
=
relativePath
.
split
(
QDir
::
separator
(),
QString
::
SkipEmptyParts
);
#endif
for
(
const
QString
&
pathPart
:
relativePathList
)
{
bool
found
=
false
;
for
(
int
row
=
0
;
row
<
mModel
->
rowCount
(
lastFoundIndex
);
++
row
)
{
...
...
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