diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2020-04-19 11:29:14 +0100 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2020-04-19 11:29:14 +0100 |
commit | 05361085127d9849ee02b59b115a516c1bd05106 (patch) | |
tree | 2274f9fe059ad21b7b9f468633c19a5e524cf993 /src/gui/pathitem.cpp | |
parent | 706b7fc38c4ed4769a3a1a8602e729b672f13118 (diff) |
draw fill color in edge style icon
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()); } |