]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Drop obsolete version checks
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 3 Jun 2018 09:32:19 +0000 (11:32 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 3 Jun 2018 09:32:19 +0000 (11:32 +0200)
We already depend on KF5 >= 5.43

src/dolphinviewcontainer.cpp
src/statusbar/statusbarspaceinfo.cpp

index 7b995955f59398399d8fb2a2f7ce6466b998f3d1..f473752dc11af6de163e80cfcb443a20d28fd977 100644 (file)
@@ -161,12 +161,7 @@ DolphinViewContainer::DolphinViewContainer(const QUrl& url, QWidget* parent) :
     connect(m_urlNavigator, &KUrlNavigator::returnPressed,
             this, &DolphinViewContainer::slotReturnPressed);
     connect(m_urlNavigator, &KUrlNavigator::urlsDropped, this, [=](const QUrl &destination, QDropEvent *event) {
-#if KIO_VERSION >= QT_VERSION_CHECK(5, 37, 0)
         m_view->dropUrls(destination, event, m_urlNavigator->dropWidget());
-#else
-        // TODO: remove as soon as we can hard-depend of KF5 >= 5.37
-        m_view->dropUrls(destination, event, m_view);
-#endif
     });
 
     connect(m_view, &DolphinView::directoryLoadingCompleted, this, [this]() {
index 9b8d249fb97a22d2ab7fac3f8b70fb80c0e1e5d0..65af174909097c2d82833174234964c9e64754e1 100644 (file)
@@ -77,9 +77,7 @@ void StatusBarSpaceInfo::mousePressEvent(QMouseEvent* event)
         // Note that this object must live long enough in case the user opens
         // the "Configure..." dialog
         KMoreToolsMenuFactory menuFactory(QStringLiteral("dolphin/statusbar-diskspace-menu"));
-#if KNEWSTUFF_VERSION >= QT_VERSION_CHECK(5, 37, 0)
         menuFactory.setParentWidget(this);
-#endif
         auto menu = menuFactory.createMenuFromGroupingNames(
             { "disk-usage", "more:", "disk-partitions" }, m_url);