mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Tags browser find: Get rid of two print statements. Adjust the boxing rectangle to make it more visible.
This commit is contained in:
parent
e1ff235aed
commit
afd18eec88
@ -56,7 +56,7 @@ class TagDelegate(QItemDelegate): # {{{
|
||||
|
||||
# Paint the text
|
||||
if item.boxed:
|
||||
painter.drawRoundedRect(r, 5, 5)
|
||||
painter.drawRoundedRect(r.adjusted(1,1,-1,-1), 5, 5)
|
||||
r.setLeft(r.left()+r.height()+3)
|
||||
painter.drawText(r, Qt.AlignLeft|Qt.AlignVCenter,
|
||||
model.data(index, Qt.DisplayRole).toString())
|
||||
@ -1194,7 +1194,6 @@ class TagBrowserWidget(QWidget): # {{{
|
||||
self.tags_view.set_pane_is_visible(to_what)
|
||||
|
||||
def find_text_changed(self, str=None):
|
||||
print 'here', str
|
||||
self.current_position = None
|
||||
self.find()
|
||||
|
||||
@ -1221,7 +1220,6 @@ class TagBrowserWidget(QWidget): # {{{
|
||||
key = self.parent.library_view.model().db.\
|
||||
field_metadata.search_term_to_field_key(txt[:colon])
|
||||
txt = txt[colon+1:]
|
||||
print key, txt
|
||||
self.current_position = model.find_node(key, txt, self.current_position)
|
||||
if self.current_position:
|
||||
model.show_item_at_index(self.current_position, box=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user