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.3.xsd</file>
|
||||||
<file>schema/pattern/v0.3.4.xsd</file>
|
<file>schema/pattern/v0.3.4.xsd</file>
|
||||||
<file>schema/pattern/v0.3.5.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.3.0.xsd</file>
|
||||||
<file>schema/standard_measurements/v0.4.0.xsd</file>
|
<file>schema/standard_measurements/v0.4.0.xsd</file>
|
||||||
<file>schema/standard_measurements/v0.4.1.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.1.xsd</file>
|
||||||
<file>schema/individual_measurements/v0.3.2.xsd</file>
|
<file>schema/individual_measurements/v0.3.2.xsd</file>
|
||||||
<file>schema/individual_measurements/v0.3.3.xsd</file>
|
<file>schema/individual_measurements/v0.3.3.xsd</file>
|
||||||
<file>schema/pattern/v0.3.6.xsd</file>
|
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
|
@ -64,7 +64,7 @@ QString VGrainlineGeometry::GetLength() const
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
void VGrainlineGeometry::SetLength(QString qsLen)
|
void VGrainlineGeometry::SetLength(const QString& qsLen)
|
||||||
{
|
{
|
||||||
m_qsLength = 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;
|
m_qsRotation = qsRot;
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,9 +48,9 @@ public:
|
||||||
QPointF GetPos() const;
|
QPointF GetPos() const;
|
||||||
void SetPos(const QPointF& ptPos);
|
void SetPos(const QPointF& ptPos);
|
||||||
QString GetLength() const;
|
QString GetLength() const;
|
||||||
void SetLength(QString qsLen);
|
void SetLength(const QString& qsLen);
|
||||||
QString GetRotation() const;
|
QString GetRotation() const;
|
||||||
void SetRotation(QString qsRot);
|
void SetRotation(const QString& qsRot);
|
||||||
bool IsVisible() const;
|
bool IsVisible() const;
|
||||||
void SetVisible(bool bVisible);
|
void SetVisible(bool bVisible);
|
||||||
|
|
||||||
|
|
|
@ -830,7 +830,7 @@ void DialogDetail::ClearFields()
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void DialogDetail::SetValue(QObject *pobjSender)
|
void DialogDetail::SetValue(QObject *pobjSender)
|
||||||
{
|
{
|
||||||
QLineEdit* pleSender = dynamic_cast<QLineEdit*>(pobjSender);
|
QLineEdit* pleSender = qobject_cast<QLineEdit*>(pobjSender);
|
||||||
SCASSERT(pleSender != 0);
|
SCASSERT(pleSender != 0);
|
||||||
|
|
||||||
QString qsFormula = pleSender->text().simplified();
|
QString qsFormula = pleSender->text().simplified();
|
||||||
|
|
|
@ -29,12 +29,12 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QtMath>
|
|
||||||
#include <QGraphicsSceneMouseEvent>
|
#include <QGraphicsSceneMouseEvent>
|
||||||
#include <QStyleOptionGraphicsItem>
|
#include <QStyleOptionGraphicsItem>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
#include "../vmisc/def.h"
|
#include "../vmisc/def.h"
|
||||||
|
#include "../vmisc/vmath.h"
|
||||||
|
|
||||||
#include "vgrainlineitem.h"
|
#include "vgrainlineitem.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user