This commit is contained in:
Kovid Goyal 2014-01-29 20:30:00 +05:30
parent a45bd4b42e
commit 209880df6c
2 changed files with 4 additions and 4 deletions

View File

@ -156,14 +156,14 @@ class Diff(Dialog):
r = l.rowCount() r = l.rowCount()
self.bn = b = QToolButton(self) 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.clicked.connect(partial(self.view.next_change, 1))
b.setToolTip(_('Go to next change')) b.setToolTip(_('Go to next change'))
b.setText(_('&Next change')), b.setToolButtonStyle(Qt.ToolButtonTextBesideIcon) b.setText(_('&Next change')), b.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
l.addWidget(b, r, l.columnCount(), 1, 1) l.addWidget(b, r, l.columnCount(), 1, 1)
self.bp = b = QToolButton(self) 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.clicked.connect(partial(self.view.next_change, -1))
b.setToolTip(_('Go to previous change')) b.setToolTip(_('Go to previous change'))
b.setText(_('&Previous change')), b.setToolButtonStyle(Qt.ToolButtonTextBesideIcon) b.setText(_('&Previous change')), b.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)

View File

@ -250,8 +250,8 @@ class TextBrowser(PlainTextEdit): # {{{
r = ev.rect() r = ev.rect()
if block.isVisible() and bottom >= r.top(): if block.isVisible() and bottom >= r.top():
text = unicode(self.line_number_map.get(num, '')) text = unicode(self.line_number_map.get(num, ''))
is_start = num in change_starts is_start = text != '-' and num in change_starts
if is_start and text != '-': if is_start:
painter.save() painter.save()
f = QFont(self.font()) f = QFont(self.font())
f.setBold(True) f.setBold(True)