settings-dialog: use grid layout (#1920)

This commit is contained in:
f8ith 2024-12-27 19:53:41 +08:00 committed by GitHub
parent edc027a8bc
commit 5dd1e7c32e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,160 +42,42 @@
</property> </property>
<layout class="QVBoxLayout" name="settingsDialogLayout"> <layout class="QVBoxLayout" name="settingsDialogLayout">
<item> <item>
<widget class="QScrollArea" name="scrollArea"> <widget class="QTabWidget" name="tabWidgetSettings">
<property name="enabled"> <property name="enabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="frameShape"> <property name="sizePolicy">
<enum>QFrame::Shape::NoFrame</enum> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="widgetResizable"> <property name="currentIndex">
<bool>true</bool> <number>0</number>
</property> </property>
<widget class="QTabWidget" name="tabWidgetSettings"> <widget class="QScrollArea" name="generalTab">
<property name="enabled"> <property name="widgetResizable">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="geometry"> <attribute name="title">
<rect> <string>General</string>
<x>0</x> </attribute>
<y>-97</y> <widget class="QWidget" name="generalTabContents">
<width>815</width> <property name="geometry">
<height>618</height> <rect>
</rect> <x>0</x>
</property> <y>0</y>
<property name="sizePolicy"> <width>822</width>
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <height>487</height>
<horstretch>0</horstretch> </rect>
<verstretch>0</verstretch> </property>
</sizepolicy> <layout class="QVBoxLayout" name="generalTabVLayout" stretch="0">
</property>
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="generalTab">
<attribute name="title">
<string>General</string>
</attribute>
<layout class="QVBoxLayout" name="generalTabVLayout" stretch="0,0">
<item> <item>
<layout class="QHBoxLayout" name="generalTabHLayoutTop" stretch="1,1,1"> <layout class="QGridLayout" name="gridLayout">
<item> <property name="bottomMargin">
<layout class="QVBoxLayout" name="systemTabLayoutLeft"> <number>0</number>
<item> </property>
<widget class="QGroupBox" name="SystemSettings"> <item row="0" column="2">
<property name="title">
<string>System</string>
</property>
<layout class="QVBoxLayout" name="emuSettingsLayout">
<item>
<widget class="QGroupBox" name="consoleLanguageGroupBox">
<property name="title">
<string>Console Language</string>
</property>
<layout class="QVBoxLayout" name="settingsLayout">
<item>
<widget class="QComboBox" name="consoleLanguageComboBox"/>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="emulatorLanguageGroupBox">
<property name="title">
<string>Emulator Language</string>
</property>
<layout class="QVBoxLayout" name="langSettingsLayout">
<item>
<widget class="QComboBox" name="emulatorLanguageComboBox"/>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="emulatorTabLayoutMiddle">
<item>
<widget class="QGroupBox" name="emulatorSettingsGroupBox">
<property name="title">
<string>Emulator</string>
</property>
<layout class="QVBoxLayout" name="additionalSettingsVLayout">
<item>
<layout class="QVBoxLayout" name="emulatorverticalLayout">
<item>
<widget class="QCheckBox" name="fullscreenCheckBox">
<property name="text">
<string>Enable Fullscreen</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="separateUpdatesCheckBox">
<property name="text">
<string>Enable Separate Update Folder</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="showSplashCheckBox">
<property name="text">
<string>Show Splash</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="ps4proCheckBox">
<property name="text">
<string>Is PS4 Pro</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="discordRPCCheckbox">
<property name="text">
<string>Enable Discord Rich Presence</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="vLayoutUserName">
<property name="spacing">
<number>6</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<item>
<layout class="QHBoxLayout" name="hLayoutUserName">
<item>
<widget class="QGroupBox" name="userName">
<property name="title">
<string>Username</string>
</property>
<layout class="QVBoxLayout" name="userNameLayout">
<item>
<widget class="QLineEdit" name="userNameLineEdit"/>
</item>
</layout>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="loggerTabLayoutRight"> <layout class="QVBoxLayout" name="loggerTabLayoutRight">
<item> <item>
<widget class="QGroupBox" name="loggerGroupBox"> <widget class="QGroupBox" name="loggerGroupBox">
@ -275,12 +157,129 @@
</item> </item>
</layout> </layout>
</item> </item>
</layout> <item row="0" column="0">
</item> <layout class="QVBoxLayout" name="systemTabLayoutLeft">
<item> <item>
<layout class="QHBoxLayout" name="generalTabHLayout_2"> <widget class="QGroupBox" name="SystemSettings">
<item> <property name="title">
<string>System</string>
</property>
<layout class="QVBoxLayout" name="emuSettingsLayout">
<item>
<widget class="QGroupBox" name="consoleLanguageGroupBox">
<property name="title">
<string>Console Language</string>
</property>
<layout class="QVBoxLayout" name="settingsLayout">
<item>
<widget class="QComboBox" name="consoleLanguageComboBox"/>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="emulatorLanguageGroupBox">
<property name="title">
<string>Emulator Language</string>
</property>
<layout class="QVBoxLayout" name="langSettingsLayout">
<item>
<widget class="QComboBox" name="emulatorLanguageComboBox"/>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item row="0" column="1">
<layout class="QVBoxLayout" name="emulatorTabLayoutMiddle">
<item>
<widget class="QGroupBox" name="emulatorSettingsGroupBox">
<property name="title">
<string>Emulator</string>
</property>
<layout class="QVBoxLayout" name="additionalSettingsVLayout">
<item>
<layout class="QVBoxLayout" name="emulatorverticalLayout">
<property name="spacing">
<number>10</number>
</property>
<item>
<widget class="QCheckBox" name="fullscreenCheckBox">
<property name="text">
<string>Enable Fullscreen</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="separateUpdatesCheckBox">
<property name="text">
<string>Enable Separate Update Folder</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="showSplashCheckBox">
<property name="text">
<string>Show Splash</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="ps4proCheckBox">
<property name="text">
<string>Is PS4 Pro</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="discordRPCCheckbox">
<property name="text">
<string>Enable Discord Rich Presence</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="vLayoutUserName">
<property name="spacing">
<number>6</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<item>
<layout class="QHBoxLayout" name="hLayoutUserName">
<item>
<widget class="QGroupBox" name="userName">
<property name="title">
<string>Username</string>
</property>
<layout class="QVBoxLayout" name="userNameLayout">
<item>
<widget class="QLineEdit" name="userNameLineEdit"/>
</item>
</layout>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item row="1" column="0">
<layout class="QVBoxLayout" name="updaterTabLayoutLeft"> <layout class="QVBoxLayout" name="updaterTabLayoutLeft">
<property name="spacing">
<number>-1</number>
</property>
<property name="sizeConstraint"> <property name="sizeConstraint">
<enum>QLayout::SizeConstraint::SetDefaultConstraint</enum> <enum>QLayout::SizeConstraint::SetDefaultConstraint</enum>
</property> </property>
@ -296,7 +295,7 @@
<property name="bottomMargin"> <property name="bottomMargin">
<number>0</number> <number>0</number>
</property> </property>
<item alignment="Qt::AlignmentFlag::AlignTop"> <item>
<widget class="QGroupBox" name="updaterGroupBox"> <widget class="QGroupBox" name="updaterGroupBox">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding"> <sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
@ -306,7 +305,7 @@
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>265</width> <width>0</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -321,7 +320,7 @@
</property> </property>
<layout class="QVBoxLayout" name="UpdateLayout" stretch="0,0,0"> <layout class="QVBoxLayout" name="UpdateLayout" stretch="0,0,0">
<property name="spacing"> <property name="spacing">
<number>5</number> <number>10</number>
</property> </property>
<property name="topMargin"> <property name="topMargin">
<number>1</number> <number>1</number>
@ -343,7 +342,7 @@
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>75</height> <height>0</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
@ -404,8 +403,8 @@
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>197</width> <width>0</width>
<height>28</height> <height>0</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
@ -443,7 +442,7 @@
</item> </item>
</layout> </layout>
</item> </item>
<item> <item row="1" column="1">
<layout class="QVBoxLayout" name="GUITabLayoutMiddle" stretch="0"> <layout class="QVBoxLayout" name="GUITabLayoutMiddle" stretch="0">
<item alignment="Qt::AlignmentFlag::AlignTop"> <item alignment="Qt::AlignmentFlag::AlignTop">
<widget class="QGroupBox" name="GUIgroupBox"> <widget class="QGroupBox" name="GUIgroupBox">
@ -476,6 +475,19 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QCheckBox" name="playBGMCheckBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Play title music</string>
</property>
</widget>
</item>
<item> <item>
<layout class="QVBoxLayout" name="GUIMusicLayout"> <layout class="QVBoxLayout" name="GUIMusicLayout">
<property name="topMargin"> <property name="topMargin">
@ -485,20 +497,7 @@
<number>0</number> <number>0</number>
</property> </property>
<item> <item>
<widget class="QCheckBox" name="playBGMCheckBox"> <spacer name="GUIverticalSpacer_3">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Play title music</string>
</property>
</widget>
</item>
<item>
<spacer name="GUIverticalSpacer_2">
<property name="orientation"> <property name="orientation">
<enum>Qt::Orientation::Vertical</enum> <enum>Qt::Orientation::Vertical</enum>
</property> </property>
@ -508,7 +507,7 @@
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>20</width> <width>20</width>
<height>2</height> <height>13</height>
</size> </size>
</property> </property>
</spacer> </spacer>
@ -573,7 +572,7 @@
</item> </item>
</layout> </layout>
</item> </item>
<item> <item row="1" column="2">
<layout class="QVBoxLayout" name="CompatTabLayoutRight" stretch="0"> <layout class="QVBoxLayout" name="CompatTabLayoutRight" stretch="0">
<item alignment="Qt::AlignmentFlag::AlignTop"> <item alignment="Qt::AlignmentFlag::AlignTop">
<widget class="QGroupBox" name="CompatgroupBox"> <widget class="QGroupBox" name="CompatgroupBox">
@ -593,6 +592,9 @@
<string>Game Compatibility</string> <string>Game Compatibility</string>
</property> </property>
<layout class="QVBoxLayout" name="CompatLayout"> <layout class="QVBoxLayout" name="CompatLayout">
<property name="spacing">
<number>10</number>
</property>
<property name="topMargin"> <property name="topMargin">
<number>1</number> <number>1</number>
</property> </property>
@ -614,53 +616,56 @@
</widget> </widget>
</item> </item>
<item> <item>
<layout class="QVBoxLayout" name="UpdateCompatLayout"> <widget class="QPushButton" name="updateCompatibilityButton">
<property name="topMargin"> <property name="sizePolicy">
<number>1</number> <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="bottomMargin"> <property name="minimumSize">
<number>0</number> <size>
<width>0</width>
<height>0</height>
</size>
</property> </property>
<item> <property name="maximumSize">
<widget class="QPushButton" name="updateCompatibilityButton"> <size>
<property name="sizePolicy"> <width>16777215</width>
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> <height>16777215</height>
<horstretch>0</horstretch> </size>
<verstretch>0</verstretch> </property>
</sizepolicy> <property name="text">
</property> <string>Update Compatibility Database</string>
<property name="minimumSize"> </property>
<size> </widget>
<width>197</width> </item>
<height>28</height> </layout>
</size> </widget>
</property> </item>
<property name="maximumSize"> </layout>
<size> </item>
<width>16777215</width> </layout>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Update Compatibility Database</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item> </item>
</layout> </layout>
</item>
</layout>
</item>
</layout>
</widget> </widget>
<widget class="QWidget" name="inputTab"> </widget>
<attribute name="title"> <widget class="QScrollArea" name="inputTab">
<string>Input</string> <property name="widgetResizable">
</attribute> <bool>true</bool>
</property>
<attribute name="title">
<string>Input</string>
</attribute>
<widget class="QWidget" name="inputTabContents">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>396</width>
<height>222</height>
</rect>
</property>
<layout class="QVBoxLayout" name="inputTabVLayout" stretch="0,0"> <layout class="QVBoxLayout" name="inputTabVLayout" stretch="0,0">
<item> <item>
<layout class="QHBoxLayout" name="inputTabHLayoutTop" stretch="1,1,1"> <layout class="QHBoxLayout" name="inputTabHLayoutTop" stretch="1,1,1">
@ -769,8 +774,8 @@
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>80</width> <width>0</width>
<height>30</height> <height>0</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
@ -856,7 +861,7 @@
</property> </property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>237</width> <width>0</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -935,10 +940,23 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="grphicsTab"> </widget>
<attribute name="title"> <widget class="QScrollArea" name="graphicsTab">
<string>Graphics</string> <property name="widgetResizable">
</attribute> <bool>true</bool>
</property>
<attribute name="title">
<string>Graphics</string>
</attribute>
<widget class="QWidget" name="graphicsTabLayout">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>536</width>
<height>192</height>
</rect>
</property>
<layout class="QVBoxLayout" name="graphicsTabVLayout" stretch="0,0"> <layout class="QVBoxLayout" name="graphicsTabVLayout" stretch="0,0">
<item> <item>
<layout class="QHBoxLayout" name="graphicsTabHLayout" stretch="1,1,1"> <layout class="QHBoxLayout" name="graphicsTabHLayout" stretch="1,1,1">
@ -1173,58 +1191,54 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="pathsTab"> </widget>
<attribute name="title"> <widget class="QScrollArea" name="pathsTab">
<string>Paths</string> <property name="widgetResizable">
</attribute> <bool>true</bool>
<layout class="QVBoxLayout" name="inputTabVLayout" stretch="0"> </property>
<attribute name="title">
<string>Paths</string>
</attribute>
<widget class="QWidget" name="pathsTabContents">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>146</width>
<height>215</height>
</rect>
</property>
<layout class="QVBoxLayout" name="pathsTabLayout" stretch="0">
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="pathsTabVLayout">
<item> <item>
<widget class="QGroupBox" name="gameFoldersGroupBox"> <widget class="QGroupBox" name="gameFoldersGroupBox">
<property name="title"> <property name="title">
<string>Game Folders</string> <string>Game Folders</string>
</property> </property>
<widget class="QListWidget" name="gameFoldersListWidget"> <layout class="QVBoxLayout" name="verticalLayout">
<property name="geometry"> <item>
<rect> <widget class="QPushButton" name="removeFolderButton">
<x>0</x> <property name="text">
<y>20</y> <string>Remove</string>
<width>401</width> </property>
<height>331</height> </widget>
</rect> </item>
</property> <item>
</widget> <widget class="QPushButton" name="addFolderButton">
<widget class="QPushButton" name="addFolderButton"> <property name="text">
<property name="geometry"> <string>Add...</string>
<rect> </property>
<x>100</x> </widget>
<y>360</y> </item>
<width>91</width> <item>
<height>24</height> <widget class="QListWidget" name="gameFoldersListWidget"/>
</rect> </item>
</property> </layout>
<property name="text">
<string>Add...</string>
</property>
</widget>
<widget class="QPushButton" name="removeFolderButton">
<property name="geometry">
<rect>
<x>199</x>
<y>360</y>
<width>91</width>
<height>24</height>
</rect>
</property>
<property name="text">
<string>Remove</string>
</property>
</widget>
</widget> </widget>
</item> </item>
<item> <item>
<spacer name="horizontalSpacer_2"> <spacer name="horizontalSpacer">
<property name="orientation"> <property name="orientation">
<enum>Qt::Orientation::Horizontal</enum> <enum>Qt::Orientation::Horizontal</enum>
</property> </property>
@ -1243,10 +1257,23 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="debugTab"> </widget>
<attribute name="title"> <widget class="QScrollArea" name="debugTab">
<string>Debug</string> <property name="widgetResizable">
</attribute> <bool>true</bool>
</property>
<attribute name="title">
<string>Debug</string>
</attribute>
<widget class="QWidget" name="debugTabContents">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>288</width>
<height>163</height>
</rect>
</property>
<layout class="QVBoxLayout" name="debugTabVLayout" stretch="0,1"> <layout class="QVBoxLayout" name="debugTabVLayout" stretch="0,1">
<item> <item>
<layout class="QHBoxLayout" name="debugTabHLayout" stretch="1"> <layout class="QHBoxLayout" name="debugTabHLayout" stretch="1">