mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
a45bd4b42e
commit
209880df6c
@ -156,14 +156,14 @@ class Diff(Dialog):
|
||||
|
||||
r = l.rowCount()
|
||||
self.bn = b = QToolButton(self)
|
||||
b.setIcon(QIcon(I('arrow-down.png')))
|
||||
b.setIcon(QIcon(I('back.png')))
|
||||
b.clicked.connect(partial(self.view.next_change, 1))
|
||||
b.setToolTip(_('Go to next change'))
|
||||
b.setText(_('&Next change')), b.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
|
||||
l.addWidget(b, r, l.columnCount(), 1, 1)
|
||||
|
||||
self.bp = b = QToolButton(self)
|
||||
b.setIcon(QIcon(I('arrow-up.png')))
|
||||
b.setIcon(QIcon(I('forward.png')))
|
||||
b.clicked.connect(partial(self.view.next_change, -1))
|
||||
b.setToolTip(_('Go to previous change'))
|
||||
b.setText(_('&Previous change')), b.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
|
||||
|
@ -250,8 +250,8 @@ class TextBrowser(PlainTextEdit): # {{{
|
||||
r = ev.rect()
|
||||
if block.isVisible() and bottom >= r.top():
|
||||
text = unicode(self.line_number_map.get(num, ''))
|
||||
is_start = num in change_starts
|
||||
if is_start and text != '-':
|
||||
is_start = text != '-' and num in change_starts
|
||||
if is_start:
|
||||
painter.save()
|
||||
f = QFont(self.font())
|
||||
f.setBold(True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user