mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 17:50:52 +01:00
Terminal strip item can be added to diagram
Initial commit about graphics item of a terminal strip, Work in progress.
This commit is contained in:
@@ -90,5 +90,19 @@ bool centerToBottomDiagram (QGraphicsItem *item_to_center, Element *element_to_f
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void drawBoundingRectSelection(QGraphicsItem *item, QPainter *painter)
|
||||
{
|
||||
painter->save();
|
||||
QPen t;
|
||||
t.setColor(Qt::gray);
|
||||
t.setStyle(Qt::DashDotLine);
|
||||
t.setCosmetic(true);
|
||||
|
||||
painter->setPen(t);
|
||||
painter->drawRoundedRect(item->boundingRect(),10,10);
|
||||
painter->restore();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user