From 243bd9d94da6d6af32520aab5708ae1ea5f92f1e Mon Sep 17 00:00:00 2001 From: Felix Ernst Date: Tue, 17 Sep 2024 11:34:30 +0200 Subject: Move settings category switcher to the top on mobile There is not enough horizontal space to show the full Dolphin settings window on the average phone. This commit saves some horizontal space by moving the category switcher in Dolphin settings from being a list on the left to being tabs on the top. --- src/settings/dolphinsettingsdialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/settings') diff --git a/src/settings/dolphinsettingsdialog.cpp b/src/settings/dolphinsettingsdialog.cpp index 782a03ae9..d9184759e 100644 --- a/src/settings/dolphinsettingsdialog.cpp +++ b/src/settings/dolphinsettingsdialog.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -37,7 +38,7 @@ DolphinSettingsDialog::DolphinSettingsDialog(const QUrl &url, QWidget *parent, K const QSize minSize = minimumSize(); setMinimumSize(QSize(540, minSize.height())); - setFaceType(List); + setFaceType(KRuntimePlatform::runtimePlatform().contains(QLatin1String("phone")) ? Tabbed : List); setWindowTitle(i18nc("@title:window", "Configure")); // Interface -- cgit v1.3