Changed QString("%1").arg() to QString().number() in VArc
--HG-- branch : feature
This commit is contained in:
parent
088f0a6987
commit
e8bf8a80e3
|
@ -354,7 +354,7 @@ void VArc::FindF2(qreal length)
|
|||
startAngle.setAngle(d->f1 + arcAngle);// We use QLineF just because it is easy way correct angle value
|
||||
|
||||
d->f2 = startAngle.angle();
|
||||
d->formulaF2 = QString("%1").arg(d->f2);
|
||||
d->formulaF2 = QString().number(qApp->fromPixel(d->f2));
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
|
||||
#include <QSharedData>
|
||||
#include "vgeometrydef.h"
|
||||
#include <../vmisc/vabstractapplication.h>
|
||||
#include "vpointf.h"
|
||||
|
||||
#ifdef Q_CC_GNU
|
||||
|
@ -54,8 +55,10 @@ public:
|
|||
{}
|
||||
|
||||
VArcData(VPointF center, qreal radius, qreal f1, qreal f2)
|
||||
: f1(f1), formulaF1(QString("%1").arg(f1)), f2(f2), formulaF2(QString("%1").arg(f2)), radius(radius),
|
||||
formulaRadius(QString("%1").arg(radius)), center(center), isFlipped(false), formulaLength()
|
||||
: f1(f1), formulaF1(QString().number(qApp->fromPixel(f1))),
|
||||
f2(f2), formulaF2(QString().number(qApp->fromPixel(f2))),
|
||||
radius(radius), formulaRadius(QString().number(qApp->fromPixel(radius))),
|
||||
center(center), isFlipped(false), formulaLength()
|
||||
{}
|
||||
|
||||
VArcData (QString formulaLength, VPointF center, qreal radius, QString formulaRadius, qreal f1, QString formulaF1 )
|
||||
|
@ -64,8 +67,8 @@ public:
|
|||
{}
|
||||
|
||||
VArcData(VPointF center, qreal radius, qreal f1)
|
||||
: f1(f1), formulaF1(QString("%1").arg(f1)), f2(0), formulaF2("0"), radius(radius),
|
||||
formulaRadius(QString("%1").arg(radius)), center(center), isFlipped(false), formulaLength()
|
||||
: f1(f1), formulaF1(QString().number(qApp->fromPixel(f1))), f2(0), formulaF2("0"), radius(radius),
|
||||
formulaRadius(QString().number(qApp->fromPixel(radius))), center(center), isFlipped(false), formulaLength()
|
||||
{}
|
||||
|
||||
VArcData(const VArcData &arc)
|
||||
|
|
|
@ -432,8 +432,8 @@ void VEllipticalArc::FindF2(qreal length)
|
|||
d->f2 = endAngle;
|
||||
lenBez = GetLength();
|
||||
}
|
||||
d->formulaF2 = QString("%1").arg(d->f2);
|
||||
d->formulaLength = QString("%1").arg(lenBez);
|
||||
d->formulaF2 = QString().number(qApp->fromPixel(d->f2));
|
||||
d->formulaLength = QString().number(qApp->fromPixel(lenBez));
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user