Commit 98c45ea6 authored by Laurent Montel's avatar Laurent Montel 😁

Compile without deprecated method

parent 30506a11
......@@ -12,8 +12,8 @@ set(KREVERSI_VERSION "${KREVERSI_BASE_VERSION}.${RELEASE_SERVICE_COMPACT_VERSION
project(kreversi VERSION ${KREVERSI_VERSION})
set (QT_MIN_VERSION "5.10.0")
set (KF5_MIN_VERSION "5.55.0")
set (QT_MIN_VERSION "5.12.0")
set (KF5_MIN_VERSION "5.71.0")
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment