Commit 322fc224 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

We depend against qt5.15

parent 7de8d482
......@@ -39,9 +39,7 @@
#include <cmath> //::segmentAt()
#if KIO_VERSION >= QT_VERSION_CHECK(5, 71, 0)
#include <KIO/OpenUrlJob>
#endif
void RadialMap::Widget::resizeEvent(QResizeEvent*)
{
......@@ -331,17 +329,9 @@ void RadialMap::Widget::mousePressEvent(QMouseEvent *e)
QAction* clicked = popup.exec(e->globalPos(), nullptr);
if (openFileManager && clicked == openFileManager) {
#if KIO_VERSION < QT_VERSION_CHECK(5, 71, 0)
KRun::runUrl(url, QStringLiteral("inode/directory"), this
#if KIO_VERSION >= QT_VERSION_CHECK(5, 31, 0)
, KRun::RunFlags()
#endif
);
#else // KIO 5.71
KIO::OpenUrlJob *job = new KIO::OpenUrlJob(url, QStringLiteral("inode/directory"), this);
job->setUiDelegate(new KIO::JobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, window()));
job->start();
#endif
} else if (openTerminal && clicked == openTerminal) {
KToolInvocation::invokeTerminal(QString(), QStringList(), url.path());
} else if (centerMap && clicked == centerMap) {
......
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