mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Clearer description of match type menu for alter tag browser
This commit is contained in:
parent
3a52138c71
commit
42ec55a59e
@ -280,7 +280,7 @@ class TagBrowserMixin(object): # {{{
|
|||||||
def do_tag_item_renamed(self):
|
def do_tag_item_renamed(self):
|
||||||
# Clean up library view and search
|
# Clean up library view and search
|
||||||
# get information to redo the selection
|
# get information to redo the selection
|
||||||
rows = [r.row() for r in \
|
rows = [r.row() for r in
|
||||||
self.library_view.selectionModel().selectedRows()]
|
self.library_view.selectionModel().selectedRows()]
|
||||||
m = self.library_view.model()
|
m = self.library_view.model()
|
||||||
ids = [m.id(r) for r in rows]
|
ids = [m.id(r) for r in rows]
|
||||||
@ -407,22 +407,24 @@ class TagBrowserWidget(QWidget): # {{{
|
|||||||
a = sb.m.addAction(x)
|
a = sb.m.addAction(x)
|
||||||
sb.bg.addAction(a)
|
sb.bg.addAction(a)
|
||||||
a.setCheckable(True)
|
a.setCheckable(True)
|
||||||
if i == 0: a.setChecked(True)
|
if i == 0:
|
||||||
|
a.setChecked(True)
|
||||||
sb.setToolTip(
|
sb.setToolTip(
|
||||||
_('Set the sort order for entries in the Tag Browser'))
|
_('Set the sort order for entries in the Tag Browser'))
|
||||||
sb.setStatusTip(sb.toolTip())
|
sb.setStatusTip(sb.toolTip())
|
||||||
|
|
||||||
ma = l.m.addAction(_('Match type'))
|
ma = l.m.addAction(_('Search type when selecting multiple items'))
|
||||||
ma.m = l.match_menu = QMenu(l.m)
|
ma.m = l.match_menu = QMenu(l.m)
|
||||||
ma.setMenu(ma.m)
|
ma.setMenu(ma.m)
|
||||||
ma.ag = QActionGroup(ma)
|
ma.ag = QActionGroup(ma)
|
||||||
|
|
||||||
# Must be in the same order as db2.MATCH_TYPE
|
# Must be in the same order as db2.MATCH_TYPE
|
||||||
for i, x in enumerate((_('Match any'), _('Match all'))):
|
for i, x in enumerate((_('Match any of the items'), _('Match all of the items'))):
|
||||||
a = ma.m.addAction(x)
|
a = ma.m.addAction(x)
|
||||||
ma.ag.addAction(a)
|
ma.ag.addAction(a)
|
||||||
a.setCheckable(True)
|
a.setCheckable(True)
|
||||||
if i == 0: a.setChecked(True)
|
if i == 0:
|
||||||
|
a.setChecked(True)
|
||||||
ma.setToolTip(
|
ma.setToolTip(
|
||||||
_('When selecting multiple entries in the Tag Browser '
|
_('When selecting multiple entries in the Tag Browser '
|
||||||
'match any or all of them'))
|
'match any or all of them'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user