Add a tooltip explaining that you can create a compound icon by separating the file names with a colon.

This commit is contained in:
Charles Haley 2022-07-23 17:16:55 +01:00
parent 7b6c56befe
commit 7ae8ad6dde
2 changed files with 10 additions and 3 deletions

View File

@ -276,6 +276,7 @@ class TemplateDialog(QDialog, Ui_TemplateDialog):
self.colored_field.setCurrentIndex(self.colored_field.findData(color_field)) self.colored_field.setCurrentIndex(self.colored_field.findData(color_field))
elif self.iconing or self.embleming: elif self.iconing or self.embleming:
self.icon_layout.setVisible(True) self.icon_layout.setVisible(True)
self.icon_select_layout.setContentsMargins(0, 0, 0, 0)
if self.embleming: if self.embleming:
self.icon_kind_label.setVisible(False) self.icon_kind_label.setVisible(False)
self.icon_kind.setVisible(False) self.icon_kind.setVisible(False)

View File

@ -76,7 +76,7 @@
<widget class="QWidget" name="icon_layout"> <widget class="QWidget" name="icon_layout">
<layout class="QGridLayout"> <layout class="QGridLayout">
<item row="0" column="0" colspan="2"> <item row="0" column="0" colspan="2">
<layout class="QHBoxLayout"> <layout class="QHBoxLayout" name="icon_kind_layout">
<item> <item>
<widget class="QLabel" name="icon_kind_label"> <widget class="QLabel" name="icon_kind_label">
<property name="text"> <property name="text">
@ -110,15 +110,21 @@
<string>Copy an icon file name to the clipboard:</string> <string>Copy an icon file name to the clipboard:</string>
</property> </property>
<property name="buddy"> <property name="buddy">
<cstring>color_name</cstring> <cstring>icon_files</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1"> <item row="2" column="1">
<widget class="QWidget"> <widget class="QWidget">
<layout class="QHBoxLayout"> <layout class="QHBoxLayout" name="icon_select_layout">
<item> <item>
<widget class="QComboBox" name="icon_files"> <widget class="QComboBox" name="icon_files">
<property name="toolTip">
<string>&lt;p&gt;The template must return the name of the icon file
to display. If you wish to display multiple icons, separate the
individual icon file names with a ':' (colon). They will all be
displayed on the column&lt;/p&gt;</string>
</property>
</widget> </widget>
</item> </item>
<item> <item>