Don't pass brush to fn.mkPen

This commit is contained in:
Daniel Lidstrom 2021-03-26 11:36:30 -07:00
parent 0234a27816
commit fb3a8b62bd

View File

@ -364,7 +364,7 @@ class ItemSample(GraphicsWidget):
if (opts.get('fillLevel', None) is not None and
opts.get('fillBrush', None) is not None):
p.setBrush(fn.mkBrush(opts['fillBrush']))
p.setPen(fn.mkPen(opts['fillBrush']))
p.setPen(fn.mkPen(opts['pen']))
p.drawPolygon(QtGui.QPolygonF(
[QtCore.QPointF(2, 18), QtCore.QPointF(18, 2),
QtCore.QPointF(18, 18)]))