wip: Add section in settings dialog for changing Qt widget style

This commit is contained in:
tomboylover93 2024-12-18 14:20:42 -03:00
parent 1f0fa2a922
commit 58404630fd

View File

@ -16,7 +16,7 @@
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -59,7 +59,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>-23</y>
<width>822</width> <width>822</width>
<height>554</height> <height>554</height>
</rect> </rect>
@ -71,7 +71,7 @@
</sizepolicy> </sizepolicy>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>3</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="generalTab"> <widget class="QWidget" name="generalTab">
<attribute name="title"> <attribute name="title">
@ -296,152 +296,152 @@
<property name="bottomMargin"> <property name="bottomMargin">
<number>0</number> <number>0</number>
</property> </property>
<item alignment="Qt::AlignmentFlag::AlignTop"> </layout>
<widget class="QGroupBox" name="updaterGroupBox"> </item>
<property name="sizePolicy"> <item>
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding"> <widget class="QGroupBox" name="updaterGroupBox">
<horstretch>0</horstretch> <property name="sizePolicy">
<verstretch>0</verstretch> <sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
</sizepolicy> <horstretch>0</horstretch>
</property> <verstretch>0</verstretch>
<property name="minimumSize"> </sizepolicy>
<size> </property>
<width>275</width> <property name="minimumSize">
<height>0</height> <size>
</size> <width>275</width>
</property> <height>0</height>
<property name="maximumSize"> </size>
<size> </property>
<width>16777215</width> <property name="maximumSize">
<height>16777215</height> <size>
</size> <width>16777215</width>
</property> <height>16777215</height>
<property name="title"> </size>
<string>Update</string> </property>
</property> <property name="title">
<layout class="QVBoxLayout" name="UpdateLayout" stretch="0,0,0"> <string>Update</string>
<property name="spacing"> </property>
<number>5</number> <layout class="QVBoxLayout" name="UpdateLayout" stretch="0,0,0">
<property name="spacing">
<number>5</number>
</property>
<property name="topMargin">
<number>1</number>
</property>
<property name="rightMargin">
<number>11</number>
</property>
<property name="bottomMargin">
<number>11</number>
</property>
<item>
<widget class="QGroupBox" name="updaterComboBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="topMargin"> <property name="minimumSize">
<number>1</number> <size>
<width>0</width>
<height>75</height>
</size>
</property> </property>
<property name="rightMargin"> <property name="maximumSize">
<number>11</number> <size>
<width>16777215</width>
<height>16777215</height>
</size>
</property> </property>
<property name="bottomMargin"> <property name="title">
<number>11</number> <string>Update Channel</string>
</property> </property>
<item> <layout class="QVBoxLayout" name="UpdateChannelLayout">
<widget class="QGroupBox" name="updaterComboBox"> <property name="spacing">
<property name="sizePolicy"> <number>7</number>
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> </property>
<horstretch>0</horstretch> <property name="leftMargin">
<verstretch>0</verstretch> <number>11</number>
</sizepolicy> </property>
</property> <property name="topMargin">
<property name="minimumSize"> <number>11</number>
<size> </property>
<width>0</width> <property name="rightMargin">
<height>75</height> <number>11</number>
</size> </property>
</property> <property name="bottomMargin">
<property name="maximumSize"> <number>11</number>
<size> </property>
<width>16777215</width> <item>
<height>16777215</height> <widget class="QComboBox" name="updateComboBox">
</size> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<property name="title"> <horstretch>0</horstretch>
<string>Update Channel</string> <verstretch>0</verstretch>
</property> </sizepolicy>
<layout class="QVBoxLayout" name="UpdateChannelLayout">
<property name="spacing">
<number>7</number>
</property>
<property name="leftMargin">
<number>11</number>
</property>
<property name="topMargin">
<number>11</number>
</property>
<property name="rightMargin">
<number>11</number>
</property>
<property name="bottomMargin">
<number>11</number>
</property> </property>
<item> <item>
<widget class="QComboBox" name="updateComboBox"> <property name="text">
<property name="sizePolicy"> <string>Release</string>
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> </property>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<item>
<property name="text">
<string>Release</string>
</property>
</item>
<item>
<property name="text">
<string>Nightly</string>
</property>
</item>
</widget>
</item> </item>
</layout> <item>
</widget> <property name="text">
</item> <string>Nightly</string>
<item> </property>
<widget class="QPushButton" name="checkUpdateButton"> </item>
<property name="sizePolicy"> </widget>
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> </item>
<horstretch>0</horstretch> </layout>
<verstretch>0</verstretch> </widget>
</sizepolicy> </item>
</property> <item>
<property name="minimumSize"> <widget class="QPushButton" name="checkUpdateButton">
<size> <property name="sizePolicy">
<width>197</width> <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<height>28</height> <horstretch>0</horstretch>
</size> <verstretch>0</verstretch>
</property> </sizepolicy>
<property name="maximumSize"> </property>
<size> <property name="minimumSize">
<width>16777215</width> <size>
<height>16777215</height> <width>197</width>
</size> <height>28</height>
</property> </size>
<property name="text"> </property>
<string>Check for Updates</string> <property name="maximumSize">
</property> <size>
</widget> <width>16777215</width>
</item> <height>16777215</height>
<item> </size>
<widget class="QCheckBox" name="updateCheckBox"> </property>
<property name="sizePolicy"> <property name="text">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <string>Check for Updates</string>
<horstretch>0</horstretch> </property>
<verstretch>0</verstretch> </widget>
</sizepolicy> </item>
</property> <item>
<property name="font"> <widget class="QCheckBox" name="updateCheckBox">
<font> <property name="sizePolicy">
<pointsize>11</pointsize> <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<bold>false</bold> <horstretch>0</horstretch>
</font> <verstretch>0</verstretch>
</property> </sizepolicy>
<property name="text"> </property>
<string>Check for Updates at Startup</string> <property name="font">
</property> <font>
</widget> <pointsize>11</pointsize>
</item> <bold>false</bold>
</layout> </font>
</widget> </property>
</item> <property name="text">
</layout> <string>Check for Updates at Startup</string>
</property>
</widget>
</item>
</layout>
</widget>
</item> </item>
<item> <item>
<layout class="QVBoxLayout" name="GUITabLayoutMiddle" stretch="0"> <layout class="QVBoxLayout" name="GUITabLayoutMiddle" stretch="0">
@ -579,17 +579,128 @@
<item> <item>
<layout class="QVBoxLayout" name="EmptyTabLayoutRight"> <layout class="QVBoxLayout" name="EmptyTabLayoutRight">
<item> <item>
<spacer name="emptyHorizontalSpacer"> <widget class="QGroupBox" name="updaterGroupBox_2">
<property name="orientation"> <property name="sizePolicy">
<enum>Qt::Orientation::Horizontal</enum> <sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="minimumSize">
<size> <size>
<width>40</width> <width>275</width>
<height>20</height> <height>0</height>
</size> </size>
</property> </property>
</spacer> <property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="title">
<string>Widget Style</string>
</property>
<layout class="QVBoxLayout" name="UpdateLayout_2" stretch="0,0">
<property name="spacing">
<number>5</number>
</property>
<property name="topMargin">
<number>1</number>
</property>
<property name="rightMargin">
<number>11</number>
</property>
<property name="bottomMargin">
<number>11</number>
</property>
<item>
<widget class="QGroupBox" name="updaterComboBox_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>75</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="title">
<string>Current Widget Style</string>
</property>
<widget class="QComboBox" name="updateComboBox_2">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>14</x>
<y>37</y>
<width>221</width>
<height>29</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="sizeIncrement">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="baseSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<item>
<property name="text">
<string>Fusion</string>
</property>
</item>
<item>
<property name="text">
<string>System</string>
</property>
</item>
</widget>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item> </item>
</layout> </layout>
</item> </item>
@ -1122,67 +1233,28 @@
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout_2">
<item> <item>
<widget class="QGroupBox" name="gameFoldersGroupBox"> <widget class="QGroupBox" name="gameFoldersGroupBox">
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title"> <property name="title">
<string>Game Folders</string> <string>Game Folders</string>
</property> </property>
<widget class="QListWidget" name="gameFoldersListWidget"> <widget class="QListWidget" name="gameFoldersListWidget">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>6</x> <x>0</x>
<y>32</y> <y>20</y>
<width>401</width> <width>401</width>
<height>331</height> <height>331</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::Shape::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Shadow::Sunken</enum>
</property>
</widget> </widget>
<widget class="QPushButton" name="addFolderButton"> <widget class="QPushButton" name="addFolderButton">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>100</x> <x>100</x>
<y>380</y> <y>360</y>
<width>91</width> <width>91</width>
<height>42</height> <height>24</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="baseSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Add...</string> <string>Add...</string>
</property> </property>
@ -1191,35 +1263,33 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>199</x> <x>199</x>
<y>380</y> <y>360</y>
<width>91</width> <width>91</width>
<height>42</height> <height>24</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="baseSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Remove</string> <string>Remove</string>
</property> </property>
</widget> </widget>
</widget> </widget>
</item> </item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Policy::Preferred</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout> </layout>
</item> </item>
</layout> </layout>