┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2018-06-03 11:32:19 +0200
committerElvis Angelaccio <[email protected]>2018-06-03 11:32:19 +0200
commitc1a594a88684159fb4466d96e1f62c05e39e4636 (patch)
tree784b0d397453a2c303ac3c5cd755794bdcd788da /src
parent2e6798088b1a07422a670f419475f8109b043fdc (diff)
Drop obsolete version checks
We already depend on KF5 >= 5.43
Diffstat (limited to 'src')
-rw-r--r--src/dolphinviewcontainer.cpp5
-rw-r--r--src/statusbar/statusbarspaceinfo.cpp2
2 files changed, 0 insertions, 7 deletions
diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp
index 7b995955f..f473752dc 100644
--- a/src/dolphinviewcontainer.cpp
+++ b/src/dolphinviewcontainer.cpp
@@ -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]() {
diff --git a/src/statusbar/statusbarspaceinfo.cpp b/src/statusbar/statusbarspaceinfo.cpp
index 9b8d249fb..65af17490 100644
--- a/src/statusbar/statusbarspaceinfo.cpp
+++ b/src/statusbar/statusbarspaceinfo.cpp
@@ -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);