Commit 34d36988 authored by Laurent Montel's avatar Laurent Montel
Browse files

We depend against kf5.98

parent 01efbdf3
Pipeline #236411 passed with stage
in 15 minutes and 55 seconds
......@@ -10,12 +10,7 @@
#include "adblockmanager.h"
#include "adblockutil.h"
#include <KConfigGroup>
#include <kio_version.h>
#if KIO_VERSION >= QT_VERSION_CHECK(5, 98, 0)
#include <KIO/JobUiDelegateFactory>
#else
#include <KIO/JobUiDelegate>
#endif
#include <KIO/OpenUrlJob>
#include <KLocalizedString>
#include <KSharedConfig>
......@@ -151,11 +146,7 @@ void AdBlockBlockableItemsWidget::slotOpenItem()
}
const QUrl url(item->text(Url));
auto job = new KIO::OpenUrlJob(url);
#if KIO_VERSION >= QT_VERSION_CHECK(5, 98, 0)
job->setUiDelegate(KIO::createDefaultJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this));
#else
job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this));
#endif
job->setRunExecutables(false);
job->start();
}
......
......@@ -35,12 +35,7 @@ using namespace PimCommon::ConfigureImmutableWidgetUtils;
#include <KMessageBox>
#include <QWhatsThisClickedEvent>
#include <kio_version.h>
#if KIO_VERSION >= QT_VERSION_CHECK(5, 98, 0)
#include <KIO/JobUiDelegateFactory>
#else
#include <KIO/JobUiDelegate>
#endif
#include <KIO/OpenUrlJob>
#include <QPointer>
#include <QStandardPaths>
......@@ -162,11 +157,7 @@ bool AdBlockSettingWidget::event(QEvent *event)
if (event->type() == QEvent::WhatsThisClicked) {
auto clicked = static_cast<QWhatsThisClickedEvent *>(event);
auto job = new KIO::OpenUrlJob(QUrl(clicked->href()));
#if KIO_VERSION >= QT_VERSION_CHECK(5, 98, 0)
job->setUiDelegate(KIO::createDefaultJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this));
#else
job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this));
#endif
job->start();
return true;
}
......
Supports Markdown
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