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
Games
KReversi
Commits
98c45ea6
Commit
98c45ea6
authored
Sep 29, 2020
by
Laurent Montel
😁
Browse files
Compile without deprecated method
parent
30506a11
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
98c45ea6
...
...
@@ -12,8 +12,8 @@ set(KREVERSI_VERSION "${KREVERSI_BASE_VERSION}.${RELEASE_SERVICE_COMPACT_VERSION
project
(
kreversi VERSION
${
KREVERSI_VERSION
}
)
set
(
QT_MIN_VERSION
"5.1
0
.0"
)
set
(
KF5_MIN_VERSION
"5.
55
.0"
)
set
(
QT_MIN_VERSION
"5.1
2
.0"
)
set
(
KF5_MIN_VERSION
"5.
71
.0"
)
find_package
(
ECM
${
KF5_MIN_VERSION
}
REQUIRED NO_MODULE
)
set
(
CMAKE_MODULE_PATH
${
ECM_MODULE_PATH
}
)
...
...
kexthighscore_gui.cpp
View file @
98c45ea6
...
...
@@ -33,6 +33,8 @@
#include <QTextStream>
#include <QVBoxLayout>
#include <KIO/OpenUrlJob>
#include <KIO/JobUiDelegate>
#include <KGuiItem>
#include <KIconLoader>
#include <kio_version.h>
...
...
@@ -40,7 +42,6 @@
#include <KIO/CopyJob>
#include <KJobWidgets>
#include <KMessageBox>
#include <KRun>
#include <KUrlLabel>
#include "kexthighscore_internal.h"
...
...
@@ -207,7 +208,9 @@ void HighscoresWidget::changeTab(int i)
void
HighscoresWidget
::
showURL
(
const
QString
&
url
)
{
// kDebug(11001) ;
(
void
)
new
KRun
(
QUrl
(
url
),
this
);
auto
*
job
=
new
KIO
::
OpenUrlJob
(
QUrl
(
url
));
job
->
setUiDelegate
(
new
KIO
::
JobUiDelegate
(
KJobUiDelegate
::
AutoHandlingEnabled
,
this
));
job
->
start
();
}
void
HighscoresWidget
::
load
(
int
rank
)
...
...
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