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
Education
KmPlot
Commits
f0c01f76
Commit
f0c01f76
authored
Oct 17, 2022
by
Nicolas Fella
Browse files
Port away from deprecated QString::splitBehavior
parent
db132be8
Changes
1
Hide whitespace changes
Inline
Side-by-side
kmplot/kmplotio.cpp
View file @
f0c01f76
...
...
@@ -525,7 +525,7 @@ void KmPlotIO::parseParameters(const QDomElement &n, Function *function)
QChar
separator
=
(
version
<
1
)
?
','
:
';'
;
QString
tagName
=
(
version
<
4
)
?
"parameterlist"
:
"parameter-list"
;
const
QStringList
str_parameters
=
n
.
namedItem
(
tagName
).
toElement
().
text
().
split
(
separator
,
Q
String
::
SkipEmptyParts
);
const
QStringList
str_parameters
=
n
.
namedItem
(
tagName
).
toElement
().
text
().
split
(
separator
,
Q
t
::
SkipEmptyParts
);
for
(
QStringList
::
const_iterator
it
=
str_parameters
.
constBegin
();
it
!=
str_parameters
.
constEnd
();
++
it
)
function
->
m_parameters
.
list
.
append
(
Value
(
*
it
));
}
...
...
@@ -754,7 +754,7 @@ QString KmPlotIO::gradientToString(const QGradientStops &stops)
// static
QGradientStops
KmPlotIO
::
stringToGradient
(
const
QString
&
string
)
{
const
QStringList
stopStrings
=
string
.
split
(
','
,
Q
String
::
SkipEmptyParts
);
const
QStringList
stopStrings
=
string
.
split
(
','
,
Q
t
::
SkipEmptyParts
);
QGradientStops
stops
;
for
(
const
QString
&
stopString
:
stopStrings
)
{
...
...
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