mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 17:43:38 +02:00
Scoped enum
This commit is contained in:
parent
fbeb0230ff
commit
cdca0c8c29
1 changed files with 5 additions and 4 deletions
|
|
@ -6,9 +6,10 @@
|
|||
__copyright__ = '2012, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
from PyQt5.Qt import (QPainter, Qt, QWidget, QPropertyAnimation, QRect, QPoint,
|
||||
QColor, QEasingCurve, QBrush, QPainterPath, QPointF,
|
||||
QPalette)
|
||||
from PyQt5.Qt import (
|
||||
QBrush, QColor, QEasingCurve, QPainter, QPainterPath, QPalette, QPoint, QPointF,
|
||||
QPropertyAnimation, QRect, Qt, QWidget
|
||||
)
|
||||
|
||||
from calibre.gui2 import config
|
||||
from polyglot.builtins import range
|
||||
|
|
@ -86,7 +87,7 @@ def start(self):
|
|||
|
||||
def paintEvent(self, ev):
|
||||
p = QPainter(self)
|
||||
p.setRenderHints(p.Antialiasing)
|
||||
p.setRenderHints(QPainter.RenderHint.Antialiasing)
|
||||
p.setBrush(self.brush)
|
||||
p.setPen(Qt.PenStyle.NoPen)
|
||||
p.drawPath(self.arrow_path)
|
||||
|
|
|
|||
Loading…
Reference in a new issue