mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-14 02:39:59 +01:00
Fix fails to build on Windows
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3142 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -142,20 +142,19 @@ 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);
|
||||
// Disable Antialiasing
|
||||
painter -> setRenderHint(QPainter::Antialiasing, false);
|
||||
painter->setPen(pen);
|
||||
|
||||
// TODO for printing line type on Windows
|
||||
|
||||
#ifdef Q_WS_WIN
|
||||
pen.setWidthF(1);
|
||||
#endif
|
||||
|
||||
switch (m_shapeType) {
|
||||
case Line:
|
||||
painter->drawLine(QLineF(m_P1, m_P2));
|
||||
|
||||
Reference in New Issue
Block a user