Rename VPiece::Missing.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-11-25 15:35:52 +02:00
parent 6424a92559
commit cb95210d1e
3 changed files with 5 additions and 5 deletions

View File

@ -245,12 +245,12 @@ void VPiece::SetCustomSARecords(const QVector<CustomSARecord> &records)
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
/** /**
* @brief Missing find missing nodes in detail. When we deleted object in detail and return this detail need * @brief MissingNodes find missing nodes in detail. When we deleted object in detail and return this detail need
* understand, what nodes need make invisible. * understand, what nodes need make invisible.
* @param det changed detail. * @param det changed detail.
* @return list with missing nodes. * @return list with missing nodes.
*/ */
QVector<VPieceNode> VPiece::Missing(const VPiece &det) const QVector<VPieceNode> VPiece::MissingNodes(const VPiece &det) const
{ {
const QVector<VPieceNode> pNodes = d->m_path.GetNodes(); const QVector<VPieceNode> pNodes = d->m_path.GetNodes();
if (pNodes.size() == det.GetPath().CountNodes()) //-V807 if (pNodes.size() == det.GetPath().CountNodes()) //-V807

View File

@ -78,7 +78,7 @@ public:
QVector<CustomSARecord> GetCustomSARecords() const; QVector<CustomSARecord> GetCustomSARecords() const;
void SetCustomSARecords(const QVector<CustomSARecord> &records); void SetCustomSARecords(const QVector<CustomSARecord> &records);
QVector<VPieceNode> Missing(const VPiece &det) const; QVector<VPieceNode> MissingNodes(const VPiece &det) const;
int indexOfNode(const quint32 &id) const; int indexOfNode(const quint32 &id) const;

View File

@ -77,7 +77,7 @@ void SavePieceOptions::undo()
VToolSeamAllowance::AddNodes(doc, domElement, m_oldDet); VToolSeamAllowance::AddNodes(doc, domElement, m_oldDet);
VToolSeamAllowance::AddCSARecords(doc, domElement, m_oldDet.GetCustomSARecords()); VToolSeamAllowance::AddCSARecords(doc, domElement, m_oldDet.GetCustomSARecords());
IncrementReferences(m_oldDet.Missing(m_newDet)); IncrementReferences(m_oldDet.MissingNodes(m_newDet));
emit NeedLiteParsing(Document::LiteParse); emit NeedLiteParsing(Document::LiteParse);
} }
else else
@ -103,7 +103,7 @@ void SavePieceOptions::redo()
VToolSeamAllowance::AddNodes(doc, domElement, m_newDet); VToolSeamAllowance::AddNodes(doc, domElement, m_newDet);
VToolSeamAllowance::AddCSARecords(doc, domElement, m_newDet.GetCustomSARecords()); VToolSeamAllowance::AddCSARecords(doc, domElement, m_newDet.GetCustomSARecords());
DecrementReferences(m_oldDet.Missing(m_newDet)); DecrementReferences(m_oldDet.MissingNodes(m_newDet));
emit NeedLiteParsing(Document::LiteParse); emit NeedLiteParsing(Document::LiteParse);
} }
else else