diff options
author | Gerald Combs <gerald@wireshark.org> | 2019-06-20 11:25:49 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2019-06-21 23:51:49 +0000 |
commit | 7b557088e9cf2e1d9bb82eb3714851e671414c43 (patch) | |
tree | 8d1ff605e9bfee90614685513aa2f428a2393572 /ui/qt/profile_dialog.ui | |
parent | d0b961f9829a3241adac74f37df920ae0dd46096 (diff) |
Qt: Convert the rest of the preference dialog list buttons.
We no longer use the old icon names, so remove their aliases from
stock_icons.qrc.
Ping-Bug: 15511
Change-Id: If3c5e2b95825207a401e12607fcb94cdcc8a51c8
Reviewed-on: https://code.wireshark.org/review/33689
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/profile_dialog.ui')
-rw-r--r-- | ui/qt/profile_dialog.ui | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/ui/qt/profile_dialog.ui b/ui/qt/profile_dialog.ui index b1fd7f8ece..fd2c908eef 100644 --- a/ui/qt/profile_dialog.ui +++ b/ui/qt/profile_dialog.ui @@ -41,42 +41,30 @@ <item> <layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0,0,0,1"> <item> - <widget class="QToolButton" name="newToolButton"> + <widget class="StockIconToolButton" name="newToolButton"> <property name="toolTip"> <string>Create a new profile using default settings.</string> </property> <property name="text"> <string/> </property> - <property name="icon"> - <iconset resource="../../image/stock_icons.qrc"> - <normaloff>:/stock/plus-8.png</normaloff>:/stock/plus-8.png</iconset> - </property> </widget> </item> <item> - <widget class="QToolButton" name="deleteToolButton"> + <widget class="StockIconToolButton" name="deleteToolButton"> <property name="toolTip"> <string>Remove this profile. System provided profiles cannot be removed.</string> </property> - <property name="icon"> - <iconset resource="../../image/stock_icons.qrc"> - <normaloff>:/stock/minus-8.png</normaloff>:/stock/minus-8.png</iconset> - </property> </widget> </item> <item> - <widget class="QToolButton" name="copyToolButton"> + <widget class="StockIconToolButton" name="copyToolButton"> <property name="toolTip"> <string>Copy this profile.</string> </property> <property name="text"> <string/> </property> - <property name="icon"> - <iconset resource="../../image/stock_icons.qrc"> - <normaloff>:/stock/copy-8.png</normaloff>:/stock/copy-8.png</iconset> - </property> </widget> </item> <item> @@ -131,10 +119,13 @@ <extends>QLabel</extends> <header>widgets/elided_label.h</header> </customwidget> + <customwidget> + <class>StockIconToolButton</class> + <extends>QToolButton</extends> + <header>widgets/stock_icon_tool_button.h</header> + </customwidget> </customwidgets> - <resources> - <include location="../../image/stock_icons.qrc"/> - </resources> + <resources/> <connections> <connection> <sender>buttonBox</sender> |