refactor: SettingsDialog, group client options together into a groupClientOptions

This commit is contained in:
sithlord48 2025-08-19 23:15:35 -04:00 committed by Chris Rizzitello
parent e9cec877f2
commit a0d75b28ba
2 changed files with 16 additions and 19 deletions

View file

@ -264,8 +264,7 @@ void SettingsDialog::updateControls()
ui->groupService->setVisible(false); ui->groupService->setVisible(false);
} }
ui->cbLanguageSync->setEnabled(writable && isClientMode()); ui->groupClientOptions->setEnabled(writable && isClientMode());
ui->cbScrollDirection->setEnabled(writable && isClientMode());
ui->widgetLogFilename->setEnabled(writable && logToFile); ui->widgetLogFilename->setEnabled(writable && logToFile);

View file

@ -37,7 +37,7 @@
<number>15</number> <number>15</number>
</property> </property>
<item> <item>
<widget class="QGroupBox" name="groupBasics"> <widget class="QGroupBox" name="groupClientOptions">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum"> <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@ -45,27 +45,20 @@
</sizepolicy> </sizepolicy>
</property> </property>
<property name="title"> <property name="title">
<string>Basics</string> <string>Client mode</string>
</property> </property>
<layout class="QVBoxLayout" name="_10"> <layout class="QVBoxLayout" name="_10">
<item>
<widget class="QCheckBox" name="cbPreventSleep">
<property name="text">
<string>Prevent this computer from going to sleep</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QCheckBox" name="cbLanguageSync"> <widget class="QCheckBox" name="cbLanguageSync">
<property name="text"> <property name="text">
<string>Use server's keyboard language on this computer (client mode)</string> <string>Use server's keyboard language on this computer</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QCheckBox" name="cbScrollDirection"> <widget class="QCheckBox" name="cbScrollDirection">
<property name="text"> <property name="text">
<string>Invert scroll direction on this computer (client mode)</string> <string>Invert scroll direction on this computer</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -92,16 +85,23 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QCheckBox" name="cbCloseToTray"> <widget class="QCheckBox" name="cbAutoHide">
<property name="text"> <property name="text">
<string>Leave app running in notification area when the window is closed</string> <string>Hide the window when the app starts</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QCheckBox" name="cbAutoHide"> <widget class="QCheckBox" name="cbPreventSleep">
<property name="text"> <property name="text">
<string>Hide the window when the app starts</string> <string>Prevent this computer from going to sleep</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cbCloseToTray">
<property name="text">
<string>Leave app running in notification area when the window is closed</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -609,12 +609,10 @@
</widget> </widget>
<tabstops> <tabstops>
<tabstop>tabWidget</tabstop> <tabstop>tabWidget</tabstop>
<tabstop>cbPreventSleep</tabstop>
<tabstop>cbLanguageSync</tabstop> <tabstop>cbLanguageSync</tabstop>
<tabstop>cbScrollDirection</tabstop> <tabstop>cbScrollDirection</tabstop>
<tabstop>cbAutoUpdate</tabstop> <tabstop>cbAutoUpdate</tabstop>
<tabstop>cbCloseToTray</tabstop> <tabstop>cbCloseToTray</tabstop>
<tabstop>cbAutoHide</tabstop>
<tabstop>rbIconColorful</tabstop> <tabstop>rbIconColorful</tabstop>
<tabstop>rbIconMono</tabstop> <tabstop>rbIconMono</tabstop>
<tabstop>groupSecurity</tabstop> <tabstop>groupSecurity</tabstop>