diff options
Diffstat (limited to 'src/gui/pathitem.cpp')
-rw-r--r-- | src/gui/pathitem.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/pathitem.cpp b/src/gui/pathitem.cpp index 107281f..b45c0a5 100644 --- a/src/gui/pathitem.cpp +++ b/src/gui/pathitem.cpp @@ -33,8 +33,11 @@ void PathItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidge { Style *st = _path->edges().first()->style(); QPen pen = st->pen(); - painter->setPen(st->pen()); - painter->setBrush(st->brush()); + QBrush brush = st->brush(); + QColor c = brush.color(); + brush.setColor(QColor(c.red(),c.green(),c.blue(),200)); + painter->setPen(pen); + painter->setBrush(brush); painter->drawPath(painterPath()); } |