#include "trash/dolphintrash.h"
+#include <KCoreAddons>
#include <KLocalizedString>
#include <KNotificationJobUiDelegate>
#include <KService>
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();
}
updateText();
}
+void DolphinNavigatorsWidgetAction::setBackgroundEnabled(bool enabled)
+{
+#if KIO_VERSION >= QT_VERSION_CHECK(6, 14, 0)
+ m_splitter->setAutoFillBackground(!enabled);
+ m_splitter->setBackgroundRole(enabled ? QPalette::Window : QPalette::Base);
+ primaryUrlNavigator()->setBackgroundEnabled(enabled);
+ if (secondaryUrlNavigator()) {
+ secondaryUrlNavigator()->setBackgroundEnabled(enabled);
+ }
+#endif
+}
+
QWidget *DolphinNavigatorsWidgetAction::createWidget(QWidget *parent)
{
QWidget *oldParent = m_splitter->parentWidget();