Don't scale points.
--HG-- branch : develop
This commit is contained in:
parent
a49606a0de
commit
e431388be8
|
@ -45,7 +45,7 @@ class QString;
|
||||||
class QStringList;
|
class QStringList;
|
||||||
|
|
||||||
#define SceneSize 50000
|
#define SceneSize 50000
|
||||||
#define DefPointRadius 2.0//mm
|
#define DefPointRadius 1.5//mm
|
||||||
|
|
||||||
extern const QString nameRegExp;
|
extern const QString nameRegExp;
|
||||||
extern const QString degreeSymbol;
|
extern const QString degreeSymbol;
|
||||||
|
|
|
@ -232,7 +232,7 @@ void VToolPoint::RefreshPointGeometry(const VPointF &point)
|
||||||
{
|
{
|
||||||
this->setFlag(QGraphicsItem::ItemSendsGeometryChanges, false);
|
this->setFlag(QGraphicsItem::ItemSendsGeometryChanges, false);
|
||||||
this->setPen(QPen(currentColor, qApp->toPixel(qApp->widthHairLine())/factor));
|
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());
|
rec.translate(-rec.center().x(), -rec.center().y());
|
||||||
this->setRect(rec);
|
this->setRect(rec);
|
||||||
this->setPos(point.toQPointF());
|
this->setPos(point.toQPointF());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user