Commit 6960b280 authored by Laurent Montel's avatar Laurent Montel 😁

Increase minimum version

parent f4828413
......@@ -3,8 +3,10 @@ cmake_minimum_required(VERSION 2.8.12)
project(Kfind)
# ECM setup
find_package(ECM 1.7.0 CONFIG REQUIRED)
find_package(ECM 5.28.0 CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
set(QT_REQUIRED_VERSION "5.6.0")
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets)
include(ECMSetupVersion)
include(ECMInstallIcons)
......
......@@ -565,10 +565,8 @@ void KFindTreeView::contextMenuRequested(const QPoint &p)
menuActions.addOpenWithActionsTo(m_contextMenu);
// 'Actions' submenu
menuActions.addServiceActionsTo(m_contextMenu);
#if KIO_VERSION >= QT_VERSION_CHECK(5, 27, 0)
// Plugins
menuActions.addPluginActionsTo(m_contextMenu);
#endif
m_contextMenu->addSeparator();
......
......@@ -74,15 +74,9 @@ int main(int argc, char **argv)
QUrl url;
if (parser.positionalArguments().count() > 0)
#if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)
{
url = QUrl::fromUserInput(parser.positionalArguments().at(0), QDir::currentPath(), QUrl::AssumeLocalFile);
}
#else
{
url = QUrl::fromUserInput(parser.positionalArguments().at(0));
}
#endif
if (url.isEmpty()) {
url = QUrl::fromLocalFile(QDir::currentPath());
}
......
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