Clearer description of match type menu for alter tag browser

This commit is contained in:
Kovid Goyal 2013-04-27 16:18:38 +05:30
parent 3a52138c71
commit 42ec55a59e

View File

@ -280,7 +280,7 @@ class TagBrowserMixin(object): # {{{
def do_tag_item_renamed(self):
# Clean up library view and search
# get information to redo the selection
rows = [r.row() for r in \
rows = [r.row() for r in
self.library_view.selectionModel().selectedRows()]
m = self.library_view.model()
ids = [m.id(r) for r in rows]
@ -407,22 +407,24 @@ class TagBrowserWidget(QWidget): # {{{
a = sb.m.addAction(x)
sb.bg.addAction(a)
a.setCheckable(True)
if i == 0: a.setChecked(True)
if i == 0:
a.setChecked(True)
sb.setToolTip(
_('Set the sort order for entries in the Tag Browser'))
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.setMenu(ma.m)
ma.ag = QActionGroup(ma)
# 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)
ma.ag.addAction(a)
a.setCheckable(True)
if i == 0: a.setChecked(True)
if i == 0:
a.setChecked(True)
ma.setToolTip(
_('When selecting multiple entries in the Tag Browser '
'match any or all of them'))