mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
9fe3d1a44b
commit
546995553a
@ -58,6 +58,15 @@ class CreateCustomColumn(QDialog, Ui_QCreateCustomColumn):
|
|||||||
self.button_box.accepted.connect(self.accept)
|
self.button_box.accepted.connect(self.accept)
|
||||||
self.button_box.rejected.connect(self.reject)
|
self.button_box.rejected.connect(self.reject)
|
||||||
self.shortcuts.linkActivated.connect(self.shortcut_activated)
|
self.shortcuts.linkActivated.connect(self.shortcut_activated)
|
||||||
|
text = '<p>'+_('Quick create:') + ' '
|
||||||
|
for col, name in [('isbn', _('ISBN')), ('formats', _('Formats')),
|
||||||
|
('last_modified', _('Modified Date')), ('yesno', _('Yes/No')),
|
||||||
|
('tags', _('Tags')), ('series', _('Series')), ('rating',
|
||||||
|
_('Rating'))]:
|
||||||
|
text += ' <a href="col:%s">%s</a>,'%(col, name)
|
||||||
|
text = text[:-1]
|
||||||
|
self.shortcuts.setText(text)
|
||||||
|
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
self.editing_col = editing
|
self.editing_col = editing
|
||||||
self.standard_colheads = standard_colheads
|
self.standard_colheads = standard_colheads
|
||||||
@ -117,7 +126,7 @@ class CreateCustomColumn(QDialog, Ui_QCreateCustomColumn):
|
|||||||
'tags': _('My Tags'),
|
'tags': _('My Tags'),
|
||||||
'series': _('My Series'),
|
'series': _('My Series'),
|
||||||
'rating': _('My Rating'),
|
'rating': _('My Rating'),
|
||||||
'last_modified':_('Last Modified')}[which])
|
'last_modified':_('Modified Date')}[which])
|
||||||
if self.composite_box.isVisible():
|
if self.composite_box.isVisible():
|
||||||
self.composite_box.setText(
|
self.composite_box.setText(
|
||||||
{
|
{
|
||||||
|
@ -267,7 +267,7 @@ four values, the first of them being the empty value.</string>
|
|||||||
<item row="3" column="0">
|
<item row="3" column="0">
|
||||||
<widget class="QLabel" name="shortcuts">
|
<widget class="QLabel" name="shortcuts">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Quick create: <a href="col:isbn" title="Show the books' ISBN in the column">ISBN</a>, <a href="col:formats" title="Show the books' formats in the column">Formats</a>, <a href="col:last_modified" title="Show the date the books' metadata was last modified in the column">Last Modified</a>, <a href="col:yesno">Yes/No</a>, <a href="col:tags">Tags</a>, <a href="col:series">Series</a>, <a href="col:rating">Rating</a></string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap">
|
<property name="wordWrap">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user