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 quint32 VPieceNode::GetId() const
{ {
return d->id; return d->m_id;
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VPieceNode::SetId(quint32 id) void VPieceNode::SetId(quint32 id)
{ {
d->id = id; d->m_id = id;
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
Tool VPieceNode::GetTypeTool() const Tool VPieceNode::GetTypeTool() const
{ {
return d->typeTool; return d->m_typeTool;
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VPieceNode::SetTypeTool(Tool value) void VPieceNode::SetTypeTool(Tool value)
{ {
d->typeTool = value; d->m_typeTool = value;
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
bool VPieceNode::GetReverse() const bool VPieceNode::GetReverse() const
{ {
return d->reverse; return d->m_reverse;
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VPieceNode::SetReverse(bool 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: public:
VPieceNodeData() VPieceNodeData()
: id(NULL_ID), : m_id(NULL_ID),
typeTool(Tool::NodePoint), m_typeTool(Tool::NodePoint),
reverse(false) m_reverse(false)
{} {}
VPieceNodeData(quint32 id, Tool typeTool, bool reverse) VPieceNodeData(quint32 id, Tool typeTool, bool reverse)
: id(id), : m_id(id),
typeTool(typeTool), m_typeTool(typeTool),
reverse(reverse) m_reverse(reverse)
{ {
if (typeTool == Tool::NodePoint) if (m_typeTool == Tool::NodePoint)
{ {
reverse = false; m_reverse = false;
} }
} }
VPieceNodeData (const VPieceNodeData& node) VPieceNodeData (const VPieceNodeData& node)
: QSharedData(node), : QSharedData(node),
id(node.id), m_id(node.m_id),
typeTool(node.typeTool), m_typeTool(node.m_typeTool),
reverse(node.reverse) m_reverse(node.m_reverse)
{} {}
~VPieceNodeData(); ~VPieceNodeData();
/** @brief id object id. */ /** @brief id object id. */
quint32 id; quint32 m_id;
/** @brief typeTool type of tool */ /** @brief typeTool type of tool */
Tool typeTool; Tool m_typeTool;
/** @brief reverse true if need reverse points list for node. */ /** @brief reverse true if need reverse points list for node. */
bool reverse; bool m_reverse;
private: private:
VPieceNodeData &operator=(const VPieceNodeData &) Q_DECL_EQ_DELETE; VPieceNodeData &operator=(const VPieceNodeData &) Q_DECL_EQ_DELETE;