summaryrefslogtreecommitdiff
path: root/src/gui/pathitem.cpp
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2020-04-19 11:29:14 +0100
committerAleks Kissinger <aleks0@gmail.com>2020-04-19 11:29:14 +0100
commit05361085127d9849ee02b59b115a516c1bd05106 (patch)
tree2274f9fe059ad21b7b9f468633c19a5e524cf993 /src/gui/pathitem.cpp
parent706b7fc38c4ed4769a3a1a8602e729b672f13118 (diff)
draw fill color in edge style icon
Diffstat (limited to 'src/gui/pathitem.cpp')
-rw-r--r--src/gui/pathitem.cpp7
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());
}