mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
8a4ceb206d
commit
c90382e059
@ -7,11 +7,11 @@ __docformat__ = 'restructuredtext en'
|
|||||||
|
|
||||||
from math import cos, sin, pi
|
from math import cos, sin, pi
|
||||||
|
|
||||||
from PyQt4.Qt import QColor, Qt, QModelIndex, QSize, \
|
from PyQt4.Qt import (QColor, Qt, QModelIndex, QSize,
|
||||||
QPainterPath, QLinearGradient, QBrush, \
|
QPainterPath, QLinearGradient, QBrush,
|
||||||
QPen, QStyle, QPainter, QStyleOptionViewItemV4, \
|
QPen, QStyle, QPainter, QStyleOptionViewItemV4,
|
||||||
QIcon, QDoubleSpinBox, QVariant, QSpinBox, \
|
QIcon, QDoubleSpinBox, QVariant, QSpinBox,
|
||||||
QStyledItemDelegate, QComboBox, QTextDocument
|
QStyledItemDelegate, QComboBox, QTextDocument)
|
||||||
|
|
||||||
from calibre.gui2 import UNDEFINED_QDATE, error_dialog
|
from calibre.gui2 import UNDEFINED_QDATE, error_dialog
|
||||||
from calibre.gui2.widgets import EnLineEdit
|
from calibre.gui2.widgets import EnLineEdit
|
||||||
@ -27,7 +27,6 @@ from calibre.gui2.dialogs.template_dialog import TemplateDialog
|
|||||||
class RatingDelegate(QStyledItemDelegate): # {{{
|
class RatingDelegate(QStyledItemDelegate): # {{{
|
||||||
COLOR = QColor("blue")
|
COLOR = QColor("blue")
|
||||||
SIZE = 16
|
SIZE = 16
|
||||||
PEN = QPen(COLOR, 1, Qt.SolidLine, Qt.RoundCap, Qt.RoundJoin)
|
|
||||||
|
|
||||||
def __init__(self, parent):
|
def __init__(self, parent):
|
||||||
QStyledItemDelegate.__init__(self, parent)
|
QStyledItemDelegate.__init__(self, parent)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user