Don't scale points.

--HG--
branch : develop
This commit is contained in:
dismine 2014-12-25 18:21:56 +02:00
parent a49606a0de
commit e431388be8
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class QString;
class QStringList;
#define SceneSize 50000
#define DefPointRadius 2.0//mm
#define DefPointRadius 1.5//mm
extern const QString nameRegExp;
extern const QString degreeSymbol;

View File

@ -232,7 +232,7 @@ void VToolPoint::RefreshPointGeometry(const VPointF &point)
{
this->setFlag(QGraphicsItem::ItemSendsGeometryChanges, false);
this->setPen(QPen(currentColor, qApp->toPixel(qApp->widthHairLine())/factor));
QRectF rec = QRectF(0, 0, radius*2/factor, radius*2/factor);
QRectF rec = QRectF(0, 0, radius*2, radius*2);
rec.translate(-rec.center().x(), -rec.center().y());
this->setRect(rec);
this->setPos(point.toQPointF());