From 05361085127d9849ee02b59b115a516c1bd05106 Mon Sep 17 00:00:00 2001 From: Aleks Kissinger Date: Sun, 19 Apr 2020 11:29:14 +0100 Subject: draw fill color in edge style icon --- src/gui/pathitem.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gui/pathitem.cpp') 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()); } -- cgit v1.2.3