Commit ad66c5d2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Now we depend against kf5.71

parent 2d835e24
Pipeline #23590 canceled with stage
......@@ -22,13 +22,8 @@
#include <QIcon>
#include <QWhatsThisClickedEvent>
#include <QWhatsThis>
#include <kio_version.h>
#if KIO_VERSION >= QT_VERSION_CHECK(5, 71, 0)
#include <KIO/JobUiDelegate>
#include <KIO/OpenUrlJob>
#else
#include <KRun>
#endif
using namespace KSieveUi;
SieveHelpButton::SieveHelpButton(QWidget *parent)
......@@ -46,13 +41,9 @@ bool SieveHelpButton::event(QEvent *event)
{
if (event->type() == QEvent::WhatsThisClicked) {
QWhatsThisClickedEvent *clicked = static_cast<QWhatsThisClickedEvent *>(event);
#if KIO_VERSION >= QT_VERSION_CHECK(5, 71, 0)
KIO::OpenUrlJob *job = new KIO::OpenUrlJob(QUrl(clicked->href()));
job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, this));
job->start();
#else
new KRun(QUrl(clicked->href()), this);
#endif
return true;
}
return QToolButton::event(event);
......
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