mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-04 03:20:53 +01:00
Basic shapes: Antialiasing set to disable, fix print line type on Windows plateform
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3139 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -142,6 +142,15 @@ void QetShapeItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *opti
|
||||
{
|
||||
Q_UNUSED(option); Q_UNUSED(widget);
|
||||
|
||||
// Disable Antialiasing
|
||||
painter -> setRenderHint(QPainter::Antialiasing, false);
|
||||
|
||||
// TODO for printing line type on Windows
|
||||
#ifdef Q_WS_WIN
|
||||
pen.setWidthF(1);
|
||||
#endif
|
||||
|
||||
|
||||
QPen pen;
|
||||
pen.setStyle(m_shapeStyle);
|
||||
if (isSelected()) pen.setColor(Qt::red);
|
||||
|
||||
Reference in New Issue
Block a user