Refactor member names VPieceNode class.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-11-04 16:28:10 +02:00
parent e261d02f89
commit 721d447af1
2 changed files with 21 additions and 21 deletions

View File

@ -62,38 +62,38 @@ VPieceNode::~VPieceNode()
//---------------------------------------------------------------------------------------------------------------------
quint32 VPieceNode::GetId() const
{
return d->id;
return d->m_id;
}
//---------------------------------------------------------------------------------------------------------------------
void VPieceNode::SetId(quint32 id)
{
d->id = id;
d->m_id = id;
}
//---------------------------------------------------------------------------------------------------------------------
Tool VPieceNode::GetTypeTool() const
{
return d->typeTool;
return d->m_typeTool;
}
//---------------------------------------------------------------------------------------------------------------------
void VPieceNode::SetTypeTool(Tool value)
{
d->typeTool = value;
d->m_typeTool = value;
}
//---------------------------------------------------------------------------------------------------------------------
bool VPieceNode::GetReverse() const
{
return d->reverse;
return d->m_reverse;
}
//---------------------------------------------------------------------------------------------------------------------
void VPieceNode::SetReverse(bool reverse)
{
if (d->typeTool != Tool::NodePoint)
if (d->m_typeTool != Tool::NodePoint)
{
d->reverse = reverse;
d->m_reverse = reverse;
}
}

View File

@ -40,39 +40,39 @@ class VPieceNodeData : public QSharedData
{
public:
VPieceNodeData()
: id(NULL_ID),
typeTool(Tool::NodePoint),
reverse(false)
: m_id(NULL_ID),
m_typeTool(Tool::NodePoint),
m_reverse(false)
{}
VPieceNodeData(quint32 id, Tool typeTool, bool reverse)
: id(id),
typeTool(typeTool),
reverse(reverse)
: m_id(id),
m_typeTool(typeTool),
m_reverse(reverse)
{
if (typeTool == Tool::NodePoint)
if (m_typeTool == Tool::NodePoint)
{
reverse = false;
m_reverse = false;
}
}
VPieceNodeData (const VPieceNodeData& node)
: QSharedData(node),
id(node.id),
typeTool(node.typeTool),
reverse(node.reverse)
m_id(node.m_id),
m_typeTool(node.m_typeTool),
m_reverse(node.m_reverse)
{}
~VPieceNodeData();
/** @brief id object id. */
quint32 id;
quint32 m_id;
/** @brief typeTool type of tool */
Tool typeTool;
Tool m_typeTool;
/** @brief reverse true if need reverse points list for node. */
bool reverse;
bool m_reverse;
private:
VPieceNodeData &operator=(const VPieceNodeData &) Q_DECL_EQ_DELETE;