┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/settings
diff options
context:
space:
mode:
authorFelix Ernst <[email protected]>2024-09-17 11:34:30 +0200
committerFelix Ernst <[email protected]>2024-10-17 15:52:31 +0000
commit243bd9d94da6d6af32520aab5708ae1ea5f92f1e (patch)
tree0bc1ccba4ed6c819815c9356edb75116706ba307 /src/settings
parent4c3f1b63b4fc6af4615e25832a3532a2023cf57f (diff)
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.
Diffstat (limited to 'src/settings')
-rw-r--r--src/settings/dolphinsettingsdialog.cpp3
1 files changed, 2 insertions, 1 deletions
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 <KAuthorized>
#include <KLocalizedString>
#include <KMessageBox>
+#include <KRuntimePlatform>
#include <KWindowConfig>
#include <kwidgetsaddons_version.h>
@@ -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