mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
19d1255af3
commit
3a42fee5bb
@ -82,7 +82,9 @@ class Heading(QWidget): # {{{
|
||||
return QWidget.leaveEvent(self, ev)
|
||||
# }}}
|
||||
|
||||
class Cell(object):
|
||||
class Cell(object): # {{{
|
||||
|
||||
__slots__ = ('rect', 'text', 'right_align', 'color_role', 'override_color')
|
||||
|
||||
SIDE_MARGIN = 5
|
||||
FLAGS = Qt.AlignVCenter | Qt.TextSingleLine | Qt.TextIncludeTrailingSpaces
|
||||
@ -100,6 +102,7 @@ class Cell(object):
|
||||
rect.setRight(width - self.SIDE_MARGIN)
|
||||
painter.setPen(palette.color(self.color_role) if self.override_color is None else self.override_color)
|
||||
painter.drawText(rect, flags, self.text)
|
||||
# }}}
|
||||
|
||||
class Declaration(QWidget):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user