From d49b4aa1bc826bc2343f518af6712981228f1c8e Mon Sep 17 00:00:00 2001 From: Méven Car Date: Sat, 13 Jun 2026 14:28:08 +0000 Subject: remove version guards below the build minimums KIO_VERSION and KFILEMETADATA_VERSION checks up to 6.23 are always true given the Qt 6.4 / KF 6.23 minimum versions. --- src/dolphinnavigatorswidgetaction.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/dolphinnavigatorswidgetaction.cpp') diff --git a/src/dolphinnavigatorswidgetaction.cpp b/src/dolphinnavigatorswidgetaction.cpp index dd7110a08..184530bc5 100644 --- a/src/dolphinnavigatorswidgetaction.cpp +++ b/src/dolphinnavigatorswidgetaction.cpp @@ -103,9 +103,7 @@ void DolphinNavigatorsWidgetAction::createSecondaryUrlNavigator() Q_ASSERT(m_splitter->count() == 1); m_splitter->addWidget(createNavigatorWidget(Secondary)); Q_ASSERT(m_splitter->count() == 2); -#if KIO_VERSION >= QT_VERSION_CHECK(6, 14, 0) secondaryUrlNavigator()->setBackgroundEnabled(primaryUrlNavigator()->isBackgroundEnabled()); -#endif updateText(); } @@ -149,18 +147,15 @@ void DolphinNavigatorsWidgetAction::setSecondaryNavigatorVisible(bool visible) // Fix an unlikely event of wrong trash button visibility. emptyTrashButton(Secondary)->setVisible(false); } -#if KIO_VERSION >= QT_VERSION_CHECK(6, 21, 0) primaryUrlNavigator()->setHighlightFocusIndicator(visible); if (secondaryUrlNavigator()) { secondaryUrlNavigator()->setHighlightFocusIndicator(visible); } -#endif updateText(); } void DolphinNavigatorsWidgetAction::setBackgroundEnabled(bool enabled) { -#if KIO_VERSION >= QT_VERSION_CHECK(6, 14, 0) // Breeze wants a plain rectangle to fill the frame, // but let other QStyles style the navbar how they please const bool isBreezeStyle = m_splitter->style()->name() == QStringLiteral("breeze"); @@ -170,9 +165,6 @@ void DolphinNavigatorsWidgetAction::setBackgroundEnabled(bool enabled) if (secondaryUrlNavigator()) { secondaryUrlNavigator()->setBackgroundEnabled(isBreezeStyle ? enabled : true); } -#else - Q_UNUSED(enabled); -#endif } QWidget *DolphinNavigatorsWidgetAction::createWidget(QWidget *parent) -- cgit v1.3.1