Qt: Consistently use QToolButton for "restore default" action

This commit is contained in:
Davide Pesavento 2025-06-10 01:20:36 -04:00 committed by Connor McLaughlin
parent 7752b2bd2d
commit 5ea64810dc
3 changed files with 15 additions and 12 deletions

View File

@ -255,7 +255,7 @@
<item row="0" column="3"> <item row="0" column="3">
<widget class="QToolButton" name="resetVolume"> <widget class="QToolButton" name="resetVolume">
<property name="toolTip"> <property name="toolTip">
<string>Reset Volume</string> <string>Reset Output Volume</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="restart-line"/> <iconset theme="restart-line"/>

View File

@ -190,12 +190,15 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="restoreTitle"> <widget class="QToolButton" name="restoreTitle">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="text"> <property name="toolTip">
<string>Restore</string> <string>Restore Title</string>
</property>
<property name="icon">
<iconset theme="restart-line"/>
</property> </property>
</widget> </widget>
</item> </item>
@ -219,9 +222,6 @@
</item> </item>
<item> <item>
<widget class="QToolButton" name="compatibilityComments"> <widget class="QToolButton" name="compatibilityComments">
<property name="text">
<string>Comments</string>
</property>
<property name="icon"> <property name="icon">
<iconset theme="information-line"/> <iconset theme="information-line"/>
</property> </property>
@ -291,12 +291,15 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="restoreRegion"> <widget class="QToolButton" name="restoreRegion">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="text"> <property name="toolTip">
<string>Restore</string> <string>Restore Region</string>
</property>
<property name="icon">
<iconset theme="restart-line"/>
</property> </property>
</widget> </widget>
</item> </item>

View File

@ -117,7 +117,7 @@
<item row="0" column="3"> <item row="0" column="3">
<widget class="QToolButton" name="resetSensitivity"> <widget class="QToolButton" name="resetSensitivity">
<property name="toolTip"> <property name="toolTip">
<string>Reset</string> <string>Reset Sensitivity</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="restart-line"/> <iconset theme="restart-line"/>
@ -127,7 +127,7 @@
<item row="1" column="3"> <item row="1" column="3">
<widget class="QToolButton" name="resetDeadzone"> <widget class="QToolButton" name="resetDeadzone">
<property name="toolTip"> <property name="toolTip">
<string>Reset</string> <string>Reset Deadzone</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset theme="restart-line"/> <iconset theme="restart-line"/>