From 356209abfa5c4b6f0909bbc43b0be64a4cf42351 Mon Sep 17 00:00:00 2001 From: dismine Date: Wed, 16 Jul 2014 15:47:31 +0300 Subject: [PATCH] Refactoring. --HG-- branch : develop --- src/app/xml/vpattern.cpp | 24 +++++++++--------------- src/app/xml/vpattern.h | 11 ++++------- 2 files changed, 13 insertions(+), 22 deletions(-) diff --git a/src/app/xml/vpattern.cpp b/src/app/xml/vpattern.cpp index a531b811a..62ee02e81 100644 --- a/src/app/xml/vpattern.cpp +++ b/src/app/xml/vpattern.cpp @@ -268,7 +268,7 @@ void VPattern::Parse(const Document &parse) { ChangeActivPP(GetParametrString(domElement, AttrName), Document::LiteParse); } - ParseDrawElement(sceneDraw, sceneDetail, domElement, parse); + ParseDrawElement(domElement, parse); break; case 1: // TagIncrements ParseIncrementsElement(domElement); @@ -762,8 +762,7 @@ void VPattern::customEvent(QEvent *event) * @param node node. * @param parse parser file mode. */ -void VPattern::ParseDrawElement(VMainGraphicsScene *sceneDraw, VMainGraphicsScene *sceneDetail, const QDomNode &node, - const Document &parse) +void VPattern::ParseDrawElement(const QDomNode &node, const Document &parse) { QStringList tags{TagCalculation, TagModeling, TagDetails}; QDomNode domNode = node.firstChild(); @@ -778,13 +777,13 @@ void VPattern::ParseDrawElement(VMainGraphicsScene *sceneDraw, VMainGraphicsScen { case 0: // TagCalculation data->ClearCalculationGObjects(); - ParseDrawMode(sceneDraw, sceneDetail, domElement, parse, Draw::Calculation); + ParseDrawMode(domElement, parse, Draw::Calculation); break; case 1: // TagModeling - ParseDrawMode(sceneDraw, sceneDetail, domElement, parse, Draw::Modeling); + ParseDrawMode(domElement, parse, Draw::Modeling); break; case 2: // TagDetails - ParseDetails(sceneDetail, domElement, parse); + ParseDetails(domElement, parse); break; default: qDebug()<<"Wrong tag name"<