Fix size policy for Game List buttons

Allows translations to expand those buttons into
multiple lines.
This commit is contained in:
Silent 2021-01-06 11:53:20 +01:00
parent 6fbd970b55
commit 2cd4357a5a
No known key found for this signature in database
GPG key ID: AE53149BB0C45AF1

View file

@ -42,22 +42,34 @@
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
<item> <item>
<widget class="QPushButton" name="addSearchDirectoryButton"> <widget class="QPushButton" name="addSearchDirectoryButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text"> <property name="text">
<string>Add</string> <string>Add</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="resources/icons.qrc"> <iconset resource="resources/resources.qrc">
<normaloff>:/icons/list-add.png</normaloff>:/icons/list-add.png</iconset> <normaloff>:/icons/list-add.png</normaloff>:/icons/list-add.png</iconset>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="removeSearchDirectoryButton"> <widget class="QPushButton" name="removeSearchDirectoryButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text"> <property name="text">
<string>Remove</string> <string>Remove</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="resources/icons.qrc"> <iconset resource="resources/resources.qrc">
<normaloff>:/icons/list-remove.png</normaloff>:/icons/list-remove.png</iconset> <normaloff>:/icons/list-remove.png</normaloff>:/icons/list-remove.png</iconset>
</property> </property>
</widget> </widget>
@ -77,33 +89,51 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="scanForNewGames"> <widget class="QPushButton" name="scanForNewGames">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text"> <property name="text">
<string>Scan New</string> <string>Scan New</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="resources/icons.qrc"> <iconset resource="resources/resources.qrc">
<normaloff>:/icons/folder-open.png</normaloff>:/icons/folder-open.png</iconset> <normaloff>:/icons/folder-open.png</normaloff>:/icons/folder-open.png</iconset>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="rescanAllGames"> <widget class="QPushButton" name="rescanAllGames">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text"> <property name="text">
<string>Rescan All</string> <string>Rescan All</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="resources/icons.qrc"> <iconset resource="resources/resources.qrc">
<normaloff>:/icons/view-refresh.png</normaloff>:/icons/view-refresh.png</iconset> <normaloff>:/icons/view-refresh.png</normaloff>:/icons/view-refresh.png</iconset>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="updateRedumpDatabase"> <widget class="QPushButton" name="updateRedumpDatabase">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text"> <property name="text">
<string>Update Redump Database</string> <string>Update Redump Database</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="resources/icons.qrc"> <iconset resource="resources/resources.qrc">
<normaloff>:/icons/applications-internet.png</normaloff>:/icons/applications-internet.png</iconset> <normaloff>:/icons/applications-internet.png</normaloff>:/icons/applications-internet.png</iconset>
</property> </property>
</widget> </widget>
@ -115,7 +145,7 @@
</layout> </layout>
</widget> </widget>
<resources> <resources>
<include location="resources/icons.qrc"/> <include location="resources/resources.qrc"/>
</resources> </resources>
<connections/> <connections/>
</ui> </ui>