mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
Drop obsolete version checks
We already depend on KF5 >= 5.43
This commit is contained in:
parent
2e6798088b
commit
c1a594a886
|
@ -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]() {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue