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
System
Dolphin
Commits
a403df91
Commit
a403df91
authored
Oct 14, 2020
by
Elvis Angelaccio
Browse files
Port to non-deprecated QString::split() variant
This requires Qt 5.14, which we now depend on.
parent
3bf2922e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/kitemviews/kfileitemmodel.cpp
View file @
a403df91
...
...
@@ -626,7 +626,7 @@ void KFileItemModel::expandParentDirectories(const QUrl &url)
// first subdir can be empty, if m_dirLister->url().path() does not end with '/'
// this happens if baseUrl is not root but a home directory, see FoldersPanel,
// so using QString::SkipEmptyParts
const
QStringList
subDirs
=
url
.
path
().
mid
(
pos
).
split
(
QDir
::
separator
(),
Q
String
::
SkipEmptyParts
);
const
QStringList
subDirs
=
url
.
path
().
mid
(
pos
).
split
(
QDir
::
separator
(),
Q
t
::
SkipEmptyParts
);
for
(
int
i
=
0
;
i
<
subDirs
.
count
()
-
1
;
++
i
)
{
QString
path
=
urlToExpand
.
path
();
if
(
!
path
.
endsWith
(
QLatin1Char
(
'/'
)))
{
...
...
src/views/dolphinremoteencoding.cpp
View file @
a403df91
...
...
@@ -175,7 +175,7 @@ void DolphinRemoteEncoding::slotDefault()
// settings here since it affects what will be matched.
KConfig
config
((
"kio_"
+
m_currentURL
.
scheme
()
+
"rc"
).
toLatin1
());
QStringList
partList
=
m_currentURL
.
host
().
split
(
'.'
,
Q
String
::
SkipEmptyParts
);
QStringList
partList
=
m_currentURL
.
host
().
split
(
'.'
,
Q
t
::
SkipEmptyParts
);
if
(
!
partList
.
isEmpty
())
{
partList
.
erase
(
partList
.
begin
());
...
...
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