From: Felix Ernst Date: Tue, 17 Sep 2024 09:34:30 +0000 (+0200) Subject: Move settings category switcher to the top on mobile X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/243bd9d94da6d6af32520aab5708ae1ea5f92f1e 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. --- 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