mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Basic shapes : set solid line pattern by default
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5918 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -45,7 +45,7 @@ QetShapeItem::QetShapeItem(QPointF p1, QPointF p2, ShapeType type, QGraphicsItem
|
|||||||
if (type == Polygon) m_polygon << m_P1 << m_P2;
|
if (type == Polygon) m_polygon << m_P1 << m_P2;
|
||||||
setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable | QGraphicsItem::ItemSendsGeometryChanges);
|
setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable | QGraphicsItem::ItemSendsGeometryChanges);
|
||||||
setAcceptHoverEvents(true);
|
setAcceptHoverEvents(true);
|
||||||
m_pen.setStyle(Qt::DashLine);
|
m_pen.setStyle(Qt::SolidLine);
|
||||||
//ensure handlers are always above this item
|
//ensure handlers are always above this item
|
||||||
connect(this, &QetShapeItem::zChanged, [this]()
|
connect(this, &QetShapeItem::zChanged, [this]()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user