Commit e82dad2e authored by Laurent Montel's avatar Laurent Montel
Browse files

We depend against kf5.98

parent 3c988ea4
Pipeline #236305 passed with stage
in 6 minutes and 2 seconds
......@@ -5,17 +5,13 @@
*/
#include "sievehelpbutton.h"
#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 <QIcon>
#include <QWhatsThis>
#include <QWhatsThisClickedEvent>
#include <kio_version.h>
using namespace KSieveUi;
SieveHelpButton::SieveHelpButton(QWidget *parent)
......@@ -32,11 +28,7 @@ bool SieveHelpButton::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