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
Games
KSudoku
Commits
80cf9009
Commit
80cf9009
authored
Jan 13, 2022
by
Laurent Montel
Browse files
We depend against qt5.15
parent
e6518b9c
Pipeline
#122926
passed with stage
in 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/gui/serializer.cpp
View file @
80cf9009
...
...
@@ -295,11 +295,7 @@ bool Serializer::deserializeClique(SKGraph * graph, const QString & size,
return
false
;
}
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
const
QStringList
splitData
=
text
.
split
(
QStringLiteral
(
" "
),
QString
::
SkipEmptyParts
);
#else
const
QStringList
splitData
=
text
.
split
(
QStringLiteral
(
" "
),
Qt
::
SkipEmptyParts
);
#endif
QVector
<
int
>
data
;
data
.
clear
();
for
(
const
QString
&
s
:
splitData
)
{
...
...
@@ -327,11 +323,7 @@ bool Serializer::deserializeCage(SKGraph * graph, const QDomElement & e) {
return
false
;
}
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
const
QStringList
cells
=
text
.
split
(
QStringLiteral
(
" "
),
QString
::
SkipEmptyParts
);
#else
const
QStringList
cells
=
text
.
split
(
QStringLiteral
(
" "
),
Qt
::
SkipEmptyParts
);
#endif
cage
.
clear
();
for
(
const
QString
&
s
:
cells
)
{
cage
<<
s
.
toInt
();
...
...
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