Basic shapes set pen.setWidthF(1) to all platforms

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3401 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2014-10-26 12:38:04 +00:00
parent bf4e6d2a58
commit c47a39d54e

View File

@@ -175,12 +175,8 @@ void QetShapeItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *opti
if (isSelected()) pen.setColor(Qt::red); if (isSelected()) pen.setColor(Qt::red);
painter -> setRenderHint(QPainter::Antialiasing, false); painter -> setRenderHint(QPainter::Antialiasing, false);
painter->setPen(pen); painter->setPen(pen);
// TODO for printing line type on Windows
#ifdef Q_WS_WIN
pen.setWidthF(1); pen.setWidthF(1);
#endif
switch (m_shapeType) { switch (m_shapeType) {
case Line: case Line: