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
Games
KReversi
Commits
bc8b149c
Commit
bc8b149c
authored
Dec 30, 2019
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it compiles against qt5.15 (endl other other use Qt:: namespace now)
parent
1ec35460
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
9 deletions
+19
-9
CMakeLists.txt
CMakeLists.txt
+1
-1
kexthighscore_internal.cpp
kexthighscore_internal.cpp
+18
-8
No files found.
CMakeLists.txt
View file @
bc8b149c
...
...
@@ -30,7 +30,7 @@ include(ECMInstallIcons)
include
(
KDEInstallDirs
)
include
(
KDECompilerSettings NO_POLICY_SCOPE
)
include
(
KDECMakeSettings
)
set
(
CMAKE_CXX_STANDARD 14
)
add_definitions
(
-DQT_USE_FAST_CONCATENATION
-DQT_USE_FAST_OPERATOR_PLUS
...
...
kexthighscore_internal.cpp
View file @
bc8b149c
...
...
@@ -41,6 +41,16 @@
// a build time HIGHSCORE_DIRECTORY or not
// #include <config-highscore.h>
namespace
{
auto
returnEndLine
()
{
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
return
endl
;
#else
return
Qt
::
endl
;
#endif
}
}
namespace
KExtHighscore
{
...
...
@@ -217,7 +227,7 @@ void ItemArray::exportToText(QTextStream &s) const
else
s
<<
at
(
i
)
->
pretty
(
k
-
1
);
}
}
s
<<
endl
;
s
<<
returnEndLine
()
;
}
}
...
...
@@ -868,16 +878,16 @@ void ManagerPrivate::exportHighscores(QTextStream &s)
for
(
uint
i
=
0
;
i
<
_nbGameTypes
;
i
++
)
{
setGameType
(
i
);
if
(
_nbGameTypes
>
1
)
{
if
(
i
!=
0
)
s
<<
endl
;
s
<<
"--------------------------------"
<<
endl
;
if
(
i
!=
0
)
s
<<
returnEndLine
()
;
s
<<
"--------------------------------"
<<
returnEndLine
()
;
s
<<
"Game type: "
<<
manager
.
gameTypeLabel
(
_gameType
,
Manager
::
I18N
)
<<
endl
;
s
<<
endl
;
<<
manager
.
gameTypeLabel
(
_gameType
,
Manager
::
I18N
)
<<
returnEndLine
()
;
s
<<
returnEndLine
()
;
}
s
<<
"Players list:"
<<
endl
;
s
<<
"Players list:"
<<
returnEndLine
()
;
_playerInfos
->
exportToText
(
s
);
s
<<
endl
;
s
<<
"Highscores list:"
<<
endl
;
s
<<
returnEndLine
()
;
s
<<
"Highscores list:"
<<
returnEndLine
()
;
_scoreInfos
->
exportToText
(
s
);
}
...
...
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