cross ref item:reduce table and redrawing symbolic by joshua

Basic shapes: workaround,pen set with 1px only in Win OS


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2944 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2014-03-21 02:28:47 +00:00
parent 5760403f11
commit 0570862e41
2 changed files with 29 additions and 24 deletions

View File

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