Fixed some code style and replaced some code with more appropriate one according to general recommendations
--HG-- branch : feature
This commit is contained in:
parent
083b2035af
commit
60462bc303
|
@ -19,6 +19,7 @@
|
|||
<file>schema/pattern/v0.3.3.xsd</file>
|
||||
<file>schema/pattern/v0.3.4.xsd</file>
|
||||
<file>schema/pattern/v0.3.5.xsd</file>
|
||||
<file>schema/pattern/v0.3.6.xsd</file>
|
||||
<file>schema/standard_measurements/v0.3.0.xsd</file>
|
||||
<file>schema/standard_measurements/v0.4.0.xsd</file>
|
||||
<file>schema/standard_measurements/v0.4.1.xsd</file>
|
||||
|
@ -28,6 +29,5 @@
|
|||
<file>schema/individual_measurements/v0.3.1.xsd</file>
|
||||
<file>schema/individual_measurements/v0.3.2.xsd</file>
|
||||
<file>schema/individual_measurements/v0.3.3.xsd</file>
|
||||
<file>schema/pattern/v0.3.6.xsd</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
|
@ -64,7 +64,7 @@ QString VGrainlineGeometry::GetLength() const
|
|||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
void VGrainlineGeometry::SetLength(QString qsLen)
|
||||
void VGrainlineGeometry::SetLength(const QString& qsLen)
|
||||
{
|
||||
m_qsLength = qsLen;
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ QString VGrainlineGeometry::GetRotation() const
|
|||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
void VGrainlineGeometry::SetRotation(QString qsRot)
|
||||
void VGrainlineGeometry::SetRotation(const QString& qsRot)
|
||||
{
|
||||
m_qsRotation = qsRot;
|
||||
}
|
||||
|
|
|
@ -48,9 +48,9 @@ public:
|
|||
QPointF GetPos() const;
|
||||
void SetPos(const QPointF& ptPos);
|
||||
QString GetLength() const;
|
||||
void SetLength(QString qsLen);
|
||||
void SetLength(const QString& qsLen);
|
||||
QString GetRotation() const;
|
||||
void SetRotation(QString qsRot);
|
||||
void SetRotation(const QString& qsRot);
|
||||
bool IsVisible() const;
|
||||
void SetVisible(bool bVisible);
|
||||
|
||||
|
|
|
@ -830,7 +830,7 @@ void DialogDetail::ClearFields()
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void DialogDetail::SetValue(QObject *pobjSender)
|
||||
{
|
||||
QLineEdit* pleSender = dynamic_cast<QLineEdit*>(pobjSender);
|
||||
QLineEdit* pleSender = qobject_cast<QLineEdit*>(pobjSender);
|
||||
SCASSERT(pleSender != 0);
|
||||
|
||||
QString qsFormula = pleSender->text().simplified();
|
||||
|
|
|
@ -50,10 +50,10 @@ HEADERS += \
|
|||
$$PWD/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectioncurves.h \
|
||||
$$PWD/drawTools/toolcurve/vtoolcubicbezier.h \
|
||||
$$PWD/drawTools/toolcurve/vtoolcubicbezierpath.h \
|
||||
$$PWD/drawTools/operation/vtoolrotation.h \
|
||||
$$PWD/vtextgraphicsitem.h \
|
||||
$$PWD/vgrainlineitem.h \
|
||||
$$PWD/drawTools/operation/flipping/vtoolflippingbyline.h \
|
||||
$$PWD/drawTools/operation/vtoolrotation.h \
|
||||
$$PWD/vtextgraphicsitem.h \
|
||||
$$PWD/vgrainlineitem.h \
|
||||
$$PWD/drawTools/operation/flipping/vtoolflippingbyline.h \
|
||||
$$PWD/drawTools/operation/vabstractoperation.h \
|
||||
$$PWD/drawTools/operation/flipping/vtoolflippingbyaxis.h \
|
||||
$$PWD/drawTools/operation/flipping/vabstractflipping.h
|
||||
|
@ -106,8 +106,8 @@ SOURCES += \
|
|||
$$PWD/drawTools/toolcurve/vtoolcubicbezierpath.cpp \
|
||||
$$PWD/drawTools/operation/vtoolrotation.cpp \
|
||||
$$PWD/vtextgraphicsitem.cpp \
|
||||
$$PWD/vgrainlineitem.cpp \
|
||||
$$PWD/drawTools/operation/flipping/vtoolflippingbyline.cpp \
|
||||
$$PWD/vgrainlineitem.cpp \
|
||||
$$PWD/drawTools/operation/flipping/vtoolflippingbyline.cpp \
|
||||
$$PWD/drawTools/operation/vabstractoperation.cpp \
|
||||
$$PWD/drawTools/operation/flipping/vtoolflippingbyaxis.cpp \
|
||||
$$PWD/drawTools/operation/flipping/vabstractflipping.cpp
|
||||
|
|
|
@ -29,12 +29,12 @@
|
|||
#include <math.h>
|
||||
|
||||
#include <QPainter>
|
||||
#include <QtMath>
|
||||
#include <QGraphicsSceneMouseEvent>
|
||||
#include <QStyleOptionGraphicsItem>
|
||||
#include <QDebug>
|
||||
|
||||
#include "../vmisc/def.h"
|
||||
#include "../vmisc/vmath.h"
|
||||
|
||||
#include "vgrainlineitem.h"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user