refactor: SettingsDialog, new Window Behavior tab

This commit is contained in:
sithlord48
2026-03-03 23:55:31 -05:00
committed by Nick Bolton
parent 22a303842e
commit 3d67865ffc
7 changed files with 93 additions and 24 deletions

View File

@ -22,9 +22,6 @@
</property> </property>
<item> <item>
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="tabGeneral"> <widget class="QWidget" name="tabGeneral">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
@ -91,20 +88,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QCheckBox" name="cbShowVersion">
<property name="text">
<string>Include version in the window title</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cbAutoHide">
<property name="text">
<string>Hide the window when the app starts</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QCheckBox" name="cbPreventSleep"> <widget class="QCheckBox" name="cbPreventSleep">
<property name="text"> <property name="text">
@ -112,13 +95,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QCheckBox" name="cbCloseToTray">
<property name="text">
<string>Leave app running in notification area when the window is closed</string>
</property>
</widget>
</item>
<item> <item>
<layout class="QFormLayout" name="formLayout"> <layout class="QFormLayout" name="formLayout">
<item row="1" column="1"> <item row="1" column="1">
@ -159,6 +135,75 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="tabWindow">
<attribute name="title">
<string>&amp;Window</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="spacing">
<number>9</number>
</property>
<property name="leftMargin">
<number>12</number>
</property>
<property name="topMargin">
<number>20</number>
</property>
<property name="rightMargin">
<number>12</number>
</property>
<property name="bottomMargin">
<number>20</number>
</property>
<item>
<spacer name="verticalSpacer_10">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QCheckBox" name="cbAutoHide">
<property name="text">
<string>Hide the window when the app starts</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>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cbShowVersion">
<property name="text">
<string>Include version in the window title</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_11">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QWidget" name="tabLog"> <widget class="QWidget" name="tabLog">
<attribute name="title"> <attribute name="title">
<string>&amp;Logs</string> <string>&amp;Logs</string>

View File

@ -1293,6 +1293,10 @@ Al habilitar esta opción, se deshabilitará la interfaz gráfica de usuario (GU
<source>&amp;Network</source> <source>&amp;Network</source>
<translation>R&amp;ed</translation> <translation>R&amp;ed</translation>
</message> </message>
<message>
<source>&amp;Window</source>
<translation type="unfinished">&amp;Ventana</translation>
</message>
</context> </context>
<context> <context>
<name>StatusBar</name> <name>StatusBar</name>

View File

@ -1293,6 +1293,10 @@ L&apos;abilitazione di questa impostazione disabiliterà l&apos;interfaccia graf
<source>&amp;Network</source> <source>&amp;Network</source>
<translation>&amp;Rete</translation> <translation>&amp;Rete</translation>
</message> </message>
<message>
<source>&amp;Window</source>
<translation type="unfinished">&amp;Finestra</translation>
</message>
</context> </context>
<context> <context>
<name>StatusBar</name> <name>StatusBar</name>

View File

@ -1295,6 +1295,10 @@ Enabling this setting will disable the server config GUI.</source>
<source>&amp;Network</source> <source>&amp;Network</source>
<translation>(&amp;N)</translation> <translation>(&amp;N)</translation>
</message> </message>
<message>
<source>&amp;Window</source>
<translation type="unfinished">(&amp;W)</translation>
</message>
</context> </context>
<context> <context>
<name>StatusBar</name> <name>StatusBar</name>

View File

@ -1293,6 +1293,10 @@ Enabling this setting will disable the server config GUI.</source>
<source>&amp;Network</source> <source>&amp;Network</source>
<translation>(&amp;N)</translation> <translation>(&amp;N)</translation>
</message> </message>
<message>
<source>&amp;Window</source>
<translation type="unfinished">(&amp;W)</translation>
</message>
</context> </context>
<context> <context>
<name>StatusBar</name> <name>StatusBar</name>

View File

@ -1291,6 +1291,10 @@ Enabling this setting will disable the server config GUI.</source>
<source>&amp;Network</source> <source>&amp;Network</source>
<translation>&amp;Сеть</translation> <translation>&amp;Сеть</translation>
</message> </message>
<message>
<source>&amp;Window</source>
<translation type="unfinished">&amp;Окно</translation>
</message>
</context> </context>
<context> <context>
<name>StatusBar</name> <name>StatusBar</name>

View File

@ -1295,6 +1295,10 @@ Enabling this setting will disable the server config GUI.</source>
<source>&amp;Network</source> <source>&amp;Network</source>
<translation>(&amp;N)</translation> <translation>(&amp;N)</translation>
</message> </message>
<message>
<source>&amp;Window</source>
<translation type="unfinished">(&amp;W)</translation>
</message>
</context> </context>
<context> <context>
<name>StatusBar</name> <name>StatusBar</name>