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

We depend against kf5.98

parent 5709df23
Pipeline #236304 passed with stage
in 4 minutes and 51 seconds
......@@ -20,12 +20,7 @@
#include <QTreeWidget>
#include <QVBoxLayout>
#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 <KTreeWidgetSearchLine>
#include <QFileDialog>
......@@ -110,11 +105,7 @@ void ShowArchiveStructureDialog::slotOpenFile()
return;
}
auto job = new KIO::OpenUrlJob(QUrl::fromLocalFile(fileName));
#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();
}
......
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