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:
scorpio810
2014-06-16 04:20:41 +00:00
parent 5aaac28bb7
commit 6c8f4482db

View File

@@ -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));