Add more to the tool tip for the new html composite column subtype

This commit is contained in:
Charles Haley 2011-07-01 16:10:47 +01:00
parent 7615f4df49
commit 708917e8cd
2 changed files with 15 additions and 3 deletions

View File

@ -143,6 +143,21 @@ class CreateCustomColumn(QDialog, Ui_QCreateCustomColumn):
all_colors = [unicode(s) for s in list(QColor.colorNames())]
self.enum_colors_label.setToolTip('<p>' + ', '.join(all_colors) + '</p>')
self.composite_contains_html.setToolTip('<p>' +
_('If checked, this column will be displayed as HTML in '
'book details and the content server. This can be used to '
'construct links with the template language. For example, '
'the template '
'<pre>&lt;big&gt;&lt;b&gt;{title}&lt;/b&gt;&lt;/big&gt;'
'{series:| [|}{series_index:| [|]]}</pre>'
'will create a field displaying the title in bold large '
'characters, along with the series, for example <br>"<big><b>'
'An Oblique Approach</b></big> [Belisarius [1]]". The template '
'<pre>&lt;a href="http://www.beam-ebooks.de/ebook/{identifiers'
':select(beam)}"&gt;Beam book&lt;/a&gt;</pre> '
'will generate a link to the book on the Beam ebooks site.')
+ '</p>')
self.exec_()
def shortcut_activated(self, url):

View File

@ -296,9 +296,6 @@ and end with &lt;code&gt;}&lt;/code&gt; You can have text before and after the f
</item>
<item>
<widget class="QCheckBox" name="composite_contains_html">
<property name="toolTip">
<string>If checked, this column will be displayed as HTML in book details and the content server</string>
</property>
<property name="text">
<string>Show as HTML in book details</string>
</property>