Don't pass brush to fn.mkPen
This commit is contained in:
parent
0234a27816
commit
fb3a8b62bd
|
@ -364,7 +364,7 @@ class ItemSample(GraphicsWidget):
|
||||||
if (opts.get('fillLevel', None) is not None and
|
if (opts.get('fillLevel', None) is not None and
|
||||||
opts.get('fillBrush', None) is not None):
|
opts.get('fillBrush', None) is not None):
|
||||||
p.setBrush(fn.mkBrush(opts['fillBrush']))
|
p.setBrush(fn.mkBrush(opts['fillBrush']))
|
||||||
p.setPen(fn.mkPen(opts['fillBrush']))
|
p.setPen(fn.mkPen(opts['pen']))
|
||||||
p.drawPolygon(QtGui.QPolygonF(
|
p.drawPolygon(QtGui.QPolygonF(
|
||||||
[QtCore.QPointF(2, 18), QtCore.QPointF(18, 2),
|
[QtCore.QPointF(2, 18), QtCore.QPointF(18, 2),
|
||||||
QtCore.QPointF(18, 18)]))
|
QtCore.QPointF(18, 18)]))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user