Qt: Fix game list search box oversizing

This commit is contained in:
Stenzek 2025-01-17 12:56:06 +10:00
parent 2957f55450
commit bf7ca1951e
No known key found for this signature in database
2 changed files with 13 additions and 19 deletions

View File

@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>758</width> <width>821</width>
<height>619</height> <height>619</height>
</rect> </rect>
</property> </property>
@ -27,7 +27,7 @@
<number>0</number> <number>0</number>
</property> </property>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_3"> <layout class="QHBoxLayout" name="horizontalLayout_3" stretch="0,1,0">
<property name="leftMargin"> <property name="leftMargin">
<number>3</number> <number>3</number>
</property> </property>
@ -57,8 +57,7 @@
<string>Game List</string> <string>Game List</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="list-check"> <iconset theme="list-check"/>
<normaloff>.</normaloff>.</iconset>
</property> </property>
<property name="checkable"> <property name="checkable">
<bool>true</bool> <bool>true</bool>
@ -80,8 +79,7 @@
<string>Game Grid</string> <string>Game Grid</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="function-line"> <iconset theme="function-line"/>
<normaloff>.</normaloff>.</iconset>
</property> </property>
<property name="checkable"> <property name="checkable">
<bool>true</bool> <bool>true</bool>
@ -103,8 +101,7 @@
<string>Merge Multi-Disc Games</string> <string>Merge Multi-Disc Games</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="play-list-2-line"> <iconset theme="play-list-2-line"/>
<normaloff>.</normaloff>.</iconset>
</property> </property>
<property name="checkable"> <property name="checkable">
<bool>true</bool> <bool>true</bool>
@ -126,8 +123,7 @@
<string>Show Titles</string> <string>Show Titles</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="price-tag-3-line"> <iconset theme="price-tag-3-line"/>
<normaloff>.</normaloff>.</iconset>
</property> </property>
<property name="checkable"> <property name="checkable">
<bool>true</bool> <bool>true</bool>
@ -158,7 +154,7 @@
<number>200</number> <number>200</number>
</property> </property>
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Orientation::Horizontal</enum>
</property> </property>
</widget> </widget>
</item> </item>
@ -167,7 +163,7 @@
<item> <item>
<spacer name="horizontalSpacer"> <spacer name="horizontalSpacer">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Orientation::Horizontal</enum>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
@ -189,8 +185,7 @@
<string>All Types</string> <string>All Types</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="filter-line"> <iconset theme="filter-line"/>
<normaloff>.</normaloff>.</iconset>
</property> </property>
</item> </item>
</widget> </widget>
@ -202,8 +197,7 @@
<string>All Regions</string> <string>All Regions</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="global-line"> <iconset theme="global-line"/>
<normaloff>.</normaloff>.</iconset>
</property> </property>
</item> </item>
</widget> </widget>
@ -212,7 +206,7 @@
<widget class="QLineEdit" name="searchText"> <widget class="QLineEdit" name="searchText">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>150</width> <width>200</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -234,7 +228,7 @@
</layout> </layout>
</widget> </widget>
<resources> <resources>
<include location="../resources/resources.qrc"/> <include location="resources/duckstation-qt.qrc"/>
</resources> </resources>
<connections/> <connections/>
</ui> </ui>

View File

@ -146,7 +146,7 @@ void SettingsWindow::addPages()
tr("<strong>Post-Processing Settings</strong><hr>Post processing allows you to alter the appearance of the image " tr("<strong>Post-Processing Settings</strong><hr>Post processing allows you to alter the appearance of the image "
"displayed on the screen with various filters. Shaders will be executed in sequence. Additional shaders can be " "displayed on the screen with various filters. Shaders will be executed in sequence. Additional shaders can be "
"downloaded from <a href=\"%1\">%1</a>.") "downloaded from <a href=\"%1\">%1</a>.")
.arg("https://github.com/duckstation/shaders")); .arg("https://github.com/stenzek/emu-shaders"));
addWidget( addWidget(
m_audio_settings = new AudioSettingsWidget(this, m_ui.settingsContainer), tr("Audio"), m_audio_settings = new AudioSettingsWidget(this, m_ui.settingsContainer), tr("Audio"),
QStringLiteral("volume-up-line"), QStringLiteral("volume-up-line"),