summary refs log tree commit diff
path: root/src/UserSettingsPage.h
diff options
context:
space:
mode:
authorAdasauce <adasauce@with.parts>2020-02-18 11:08:19 -0400
committerAdasauce <adasauce@with.parts>2020-02-18 11:08:19 -0400
commit111e4504acb5f1575b00d60cba8552c70db45c08 (patch)
treed9a23f6d976e17b3713c436ec60a8ef17508eafe /src/UserSettingsPage.h
parentPaginationg != Paginating in debug message (diff)
downloadnheko-111e4504acb5f1575b00d60cba8552c70db45c08.tar.xz
Replace QHBoxLayout with QFormLayout in UserSettings
This allows form fields to wrap dynamically when they are too long for
the view. This should help mobile and small screen users to configure
the app without having to force it into portrait mode, or not be able to
reach the settings fields at all.
Diffstat (limited to 'src/UserSettingsPage.h')
-rw-r--r--src/UserSettingsPage.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/UserSettingsPage.h b/src/UserSettingsPage.h
index 299905ab..7b290073 100644
--- a/src/UserSettingsPage.h
+++ b/src/UserSettingsPage.h
@@ -19,6 +19,7 @@
 
 #include <QComboBox>
 #include <QFontDatabase>
+#include <QFormLayout>
 #include <QFrame>
 #include <QLabel>
 #include <QLayout>
@@ -166,6 +167,7 @@ private slots:
 private:
         // Layouts
         QVBoxLayout *topLayout_;
+        QFormLayout *formLayout_;
         QVBoxLayout *mainLayout_;
         QHBoxLayout *topBarLayout_;