mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Scoped enum
This commit is contained in:
parent
fbeb0230ff
commit
cdca0c8c29
@ -6,9 +6,10 @@ __license__ = 'GPL v3'
|
|||||||
__copyright__ = '2012, Kovid Goyal <kovid at kovidgoyal.net>'
|
__copyright__ = '2012, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||||
__docformat__ = 'restructuredtext en'
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
from PyQt5.Qt import (QPainter, Qt, QWidget, QPropertyAnimation, QRect, QPoint,
|
from PyQt5.Qt import (
|
||||||
QColor, QEasingCurve, QBrush, QPainterPath, QPointF,
|
QBrush, QColor, QEasingCurve, QPainter, QPainterPath, QPalette, QPoint, QPointF,
|
||||||
QPalette)
|
QPropertyAnimation, QRect, Qt, QWidget
|
||||||
|
)
|
||||||
|
|
||||||
from calibre.gui2 import config
|
from calibre.gui2 import config
|
||||||
from polyglot.builtins import range
|
from polyglot.builtins import range
|
||||||
@ -86,7 +87,7 @@ class Pointer(QWidget):
|
|||||||
|
|
||||||
def paintEvent(self, ev):
|
def paintEvent(self, ev):
|
||||||
p = QPainter(self)
|
p = QPainter(self)
|
||||||
p.setRenderHints(p.Antialiasing)
|
p.setRenderHints(QPainter.RenderHint.Antialiasing)
|
||||||
p.setBrush(self.brush)
|
p.setBrush(self.brush)
|
||||||
p.setPen(Qt.PenStyle.NoPen)
|
p.setPen(Qt.PenStyle.NoPen)
|
||||||
p.drawPath(self.arrow_path)
|
p.drawPath(self.arrow_path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user