Improvement in custom comments header position documentation

This commit is contained in:
Charles Haley 2023-04-21 16:31:23 +01:00
parent 464030a796
commit 9ccabd206f
3 changed files with 16 additions and 7 deletions

View File

@ -88,8 +88,11 @@ class Configure(Dialog):
h.addLayout(v)
self.l.addLayout(h)
self.l.addWidget(QLabel('<p>' + _(
'Note that <b>comments</b> will always be displayed at the end, regardless of the order you assign here')))
txt = QLabel('<p>' + _(
'Note: <b>comments</b>-like columns will always be displayed at '
'the end unless their "Heading position" is "Show heading to the side"')+'</p>')
txt.setWordWrap(True)
self.l.addWidget(txt)
b = self.bb.addButton(_('Restore &defaults'), QDialogButtonBox.ButtonRole.ActionRole)
b.clicked.connect(self.restore_defaults)

View File

@ -396,9 +396,13 @@ class CreateCustomColumn(QDialog):
('side', _('Show heading to the side of the text'))
):
ct.addItem(text, k)
ct.setToolTip(_('Choose whether or not the column heading is shown in the Book\n'
'details panel and, if shown, where'))
self.comments_heading_position_label = add_row(_('Column heading:'), ct)
ct.setToolTip('<p>' +
_('Choose whether or not the column heading is shown in the Book '
'details panel and, if shown, where. Setting this to '
"'Show heading to the side of the text' moves the information "
"from dislayed with other comments to displayed with the "
"non-comments columns.") + '</p>')
self.comments_heading_position_label = add_row(_('Heading position:'), ct)
self.comments_type = ct = QComboBox(self)
for k, text in (

View File

@ -817,10 +817,12 @@ A value of zero means calculate automatically.</string>
</property>
</widget>
</item>
<item row="4" column="0">
<item row="4" column="0" colspan="2">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Note that &lt;b&gt;comments&lt;/b&gt; will always be displayed at the end, regardless of the position you assign here.</string>
<string>&lt;p&gt;Note: &lt;b&gt;comments&lt;/b&gt;-like columns will always
be displayed at the end unless their "Heading position" is
"Show heading to the side".&lt;/p&gt;</string>
</property>
<property name="wordWrap">
<bool>true</bool>