mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Fix ability conductor size less than 1, thanks Timbul Widodo
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4607 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -455,7 +455,7 @@ void Conductor::paint(QPainter *qp, const QStyleOptionGraphicsItem *options, QWi
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Draw the conductor bigger when is hovered
|
//Draw the conductor bigger when is hovered
|
||||||
conductor_pen.setWidth(bMouseOver? (properties_.cond_size) +4 : (properties_.cond_size));
|
conductor_pen.setWidthF(bMouseOver? (properties_.cond_size) +4 : (properties_.cond_size));
|
||||||
|
|
||||||
// affectation du QPen et de la QBrush modifies au QPainter
|
// affectation du QPen et de la QBrush modifies au QPainter
|
||||||
qp -> setBrush(conductor_brush);
|
qp -> setBrush(conductor_brush);
|
||||||
|
|||||||
Reference in New Issue
Block a user