Removed unused variable.
--HG-- branch : develop
This commit is contained in:
parent
f2a111f0d2
commit
ad28a200f7
|
@ -31,14 +31,13 @@
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
DeletePatternPiece::DeletePatternPiece(VAbstractPattern *doc, const QString &namePP, QUndoCommand *parent)
|
DeletePatternPiece::DeletePatternPiece(VAbstractPattern *doc, const QString &namePP, QUndoCommand *parent)
|
||||||
: VUndoCommand(QDomElement(), doc, parent), namePP(namePP), patternPiece(QDomElement()), mPath(QString()),
|
: VUndoCommand(QDomElement(), doc, parent), namePP(namePP), patternPiece(QDomElement()),
|
||||||
previousPPName(QString())
|
previousPPName(QString())
|
||||||
{
|
{
|
||||||
setText(tr("delete pattern piece %1").arg(namePP));
|
setText(tr("delete pattern piece %1").arg(namePP));
|
||||||
|
|
||||||
QDomElement patternP = doc->GetPPElement(namePP);
|
QDomElement patternP = doc->GetPPElement(namePP);
|
||||||
patternPiece = patternP.cloneNode().toElement();
|
patternPiece = patternP.cloneNode().toElement();
|
||||||
mPath = doc->MPath();
|
|
||||||
QDomNode previousPP = patternP.previousSibling();//find previous pattern piece
|
QDomNode previousPP = patternP.previousSibling();//find previous pattern piece
|
||||||
previousPPName = doc->GetParametrString(previousPP.toElement(), VAbstractPattern::AttrName, "");
|
previousPPName = doc->GetParametrString(previousPP.toElement(), VAbstractPattern::AttrName, "");
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,6 @@ private:
|
||||||
Q_DISABLE_COPY(DeletePatternPiece)
|
Q_DISABLE_COPY(DeletePatternPiece)
|
||||||
QString namePP;
|
QString namePP;
|
||||||
QDomElement patternPiece;
|
QDomElement patternPiece;
|
||||||
QString mPath;
|
|
||||||
QString previousPPName;
|
QString previousPPName;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user