Commit 868d3d31 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove obsolete code

parent 3d01e041
Pipeline #135228 passed with stage
in 2 minutes and 24 seconds
......@@ -11,7 +11,9 @@ project(gwenview VERSION ${RELEASE_SERVICE_VERSION})
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake )
set (QT_MIN_VERSION "5.15.0")
set (KF5_MIN_VERSION "5.79.0")
set (KF5_MIN_VERSION "5.84.0")
set(KDE_COMPILERSETTINGS_LEVEL "5.82")
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
......
......@@ -81,11 +81,7 @@ void FileOpsContextManagerItem::updateServiceList()
}
}
#if KIO_VERSION >= QT_VERSION_CHECK(5, 83, 0)
mServiceList = KFileItemActions::associatedApplications(mimeTypes);
#else
mServiceList = KFileItemActions::associatedApplications(mimeTypes, QString());
#endif
}
QMimeData *FileOpsContextManagerItem::selectionMimeData()
......
......@@ -1692,11 +1692,7 @@ void MainWindow::showConfigDialog()
void MainWindow::configureShortcuts()
{
#if KXMLGUI_VERSION >= QT_VERSION_CHECK(5, 84, 0)
guiFactory()->showConfigureShortcutsDialog();
#else
guiFactory()->configureShortcuts();
#endif
}
void MainWindow::toggleMenuBar()
......
......@@ -40,13 +40,8 @@ InvisibleButtonGroup::InvisibleButtonGroup(QWidget *parent)
hide();
d->mGroup = new QButtonGroup(this);
d->mGroup->setExclusive(true);
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
connect(d->mGroup,
&QButtonGroup::idClicked,
#else
connect(d->mGroup,
QOverload<int>::of(&QButtonGroup::buttonClicked),
#endif
this,
&InvisibleButtonGroup::selectionChanged);
}
......
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