BlockView draw bus joint changed
This commit is contained in:
@@ -721,10 +721,18 @@ void BlockBusItem::paint(QPainter * p, const QStyleOptionGraphicsItem * o, QWidg
|
|||||||
//if (mark_in) {p->setPen(pa); p->setBrush(ba);}
|
//if (mark_in) {p->setPen(pa); p->setBrush(ba);}
|
||||||
//if (mark_out) {p->setPen(pr); p->setBrush(br);}
|
//if (mark_out) {p->setPen(pr); p->setBrush(br);}
|
||||||
if (im_bus.isNull()) {
|
if (im_bus.isNull()) {
|
||||||
|
QPen _pen(p->pen());
|
||||||
for (int i = 0; i < segments.size(); ++i) {
|
for (int i = 0; i < segments.size(); ++i) {
|
||||||
|
_pen.setWidthF(pen_width);
|
||||||
|
p->setPen(_pen);
|
||||||
p->drawLine(pol[segments[i].first], pol[segments[i].second]);
|
p->drawLine(pol[segments[i].first], pol[segments[i].second]);
|
||||||
if (pointSegmentsCount(segments[i].first) > 2) p->drawEllipse(pol[segments[i].first], pen_width*0.7, pen_width*0.7);
|
if (pointSegmentsCount(segments[i].first) > 2) {
|
||||||
|
_pen.setWidthF(pen_width + 3.);
|
||||||
|
p->setPen(_pen);
|
||||||
|
p->drawPoint(pol[segments[i].first]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
p->setPen(_pen);
|
||||||
} else {
|
} else {
|
||||||
QBrush br;
|
QBrush br;
|
||||||
br.setTextureImage(im_bus);
|
br.setTextureImage(im_bus);
|
||||||
|
|||||||
Reference in New Issue
Block a user