Basic shapes: better fix

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2935 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2014-03-19 14:56:06 +00:00
parent 64b706c30f
commit d34c15537c

View File

@@ -104,7 +104,13 @@ void QetShapeItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *opti
painter -> setRenderHint(QPainter::Antialiasing, false);
QRectF rec = boundingRect();
QPen pen(Qt::black);
pen.setWidth(1);
#ifdef Q_WS_WIN
pen.setWidth(1);
#elif Q_WS_MAC
pen.setWidth(0.5);
#endif
if (isSelected())
pen.setColor(Qt::red);
pen.setStyle(_shapeStyle);