Minor : Force single line symbols specific conductor to 1 pixel,

even if the thickness of the conductor is superior than 1 pixel


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4292 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2015-12-28 15:19:55 +00:00
parent abec05eed2
commit 72c65f80ad
3 changed files with 7 additions and 6 deletions

View File

@@ -71,6 +71,7 @@ void SingleLineProperties::draw(QPainter *painter, QET::ConductorSegmentType dir
pen.setCapStyle(Qt::FlatCap); pen.setCapStyle(Qt::FlatCap);
pen.setJoinStyle(Qt::MiterJoin); pen.setJoinStyle(Qt::MiterJoin);
pen.setStyle(Qt::SolidLine); pen.setStyle(Qt::SolidLine);
pen.setWidthF(1);
painter -> setPen(pen); painter -> setPen(pen);
painter -> setRenderHint(QPainter::Antialiasing, true); painter -> setRenderHint(QPainter::Antialiasing, true);