Refactoring.
Rename the function to better reflect its purpose.
This commit is contained in:
parent
27fe4b15fd
commit
f2624692e3
|
@ -1336,7 +1336,7 @@ void MainWindow::ClosedDialogInsertNode(int result)
|
|||
{
|
||||
const QPointer<DialogInsertNode> dTool = qobject_cast<DialogInsertNode *>(dialogTool);
|
||||
SCASSERT(not dTool.isNull())
|
||||
VToolSeamAllowance::InsertNode(dTool->GetNodes(), dTool->GetPieceId(), sceneDetails, pattern, doc);
|
||||
VToolSeamAllowance::InsertNodes(dTool->GetNodes(), dTool->GetPieceId(), sceneDetails, pattern, doc);
|
||||
}
|
||||
ArrowTool(true);
|
||||
doc->LiteParseTree(Document::LiteParse);
|
||||
|
|
|
@ -223,8 +223,8 @@ void VToolSeamAllowance::RemoveWithConfirm(bool ask)
|
|||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VToolSeamAllowance::InsertNode(const QVector<VPieceNode> &nodes, quint32 pieceId, VMainGraphicsScene *scene,
|
||||
VContainer *data, VAbstractPattern *doc)
|
||||
void VToolSeamAllowance::InsertNodes(const QVector<VPieceNode> &nodes, quint32 pieceId, VMainGraphicsScene *scene,
|
||||
VContainer *data, VAbstractPattern *doc)
|
||||
{
|
||||
SCASSERT(scene != nullptr)
|
||||
SCASSERT(data != nullptr)
|
||||
|
|
|
@ -91,7 +91,7 @@ public:
|
|||
|
||||
void RemoveWithConfirm(bool ask);
|
||||
|
||||
static void InsertNode(const QVector<VPieceNode> &nodes, quint32 pieceId, VMainGraphicsScene *scene,
|
||||
static void InsertNodes(const QVector<VPieceNode> &nodes, quint32 pieceId, VMainGraphicsScene *scene,
|
||||
VContainer *data, VAbstractPattern *doc);
|
||||
|
||||
static void AddAttributes(VAbstractPattern *doc, QDomElement &domElement, quint32 id, const VPiece &piece);
|
||||
|
|
Loading…
Reference in New Issue
Block a user