Undocommand SavePieceOptions. Don't need anymore pointer to scene.
--HG-- branch : feature
This commit is contained in:
parent
422fb60dcc
commit
024f1373f6
|
@ -48,12 +48,10 @@ class QDomElement;
|
||||||
class QUndoCommand;
|
class QUndoCommand;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
SavePieceOptions::SavePieceOptions(const VPiece &oldDet, const VPiece &newDet, VAbstractPattern *doc, quint32 id,
|
SavePieceOptions::SavePieceOptions(const VPiece &oldDet, const VPiece &newDet, VAbstractPattern *doc, quint32 id, QUndoCommand *parent)
|
||||||
QGraphicsScene *scene, QUndoCommand *parent)
|
|
||||||
: VUndoCommand(QDomElement(), doc, parent),
|
: VUndoCommand(QDomElement(), doc, parent),
|
||||||
m_oldDet(oldDet),
|
m_oldDet(oldDet),
|
||||||
m_newDet(newDet),
|
m_newDet(newDet)
|
||||||
m_scene(scene)
|
|
||||||
{
|
{
|
||||||
setText(tr("save detail option"));
|
setText(tr("save detail option"));
|
||||||
nodeId = id;
|
nodeId = id;
|
||||||
|
|
|
@ -43,7 +43,7 @@ class SavePieceOptions : public VUndoCommand
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SavePieceOptions(const VPiece &m_oldDet, const VPiece &m_newDet, VAbstractPattern *doc, quint32 id,
|
SavePieceOptions(const VPiece &m_oldDet, const VPiece &m_newDet, VAbstractPattern *doc, quint32 id,
|
||||||
QGraphicsScene *m_scene, QUndoCommand *parent = nullptr);
|
QUndoCommand *parent = nullptr);
|
||||||
virtual ~SavePieceOptions();
|
virtual ~SavePieceOptions();
|
||||||
|
|
||||||
virtual void undo() Q_DECL_OVERRIDE;
|
virtual void undo() Q_DECL_OVERRIDE;
|
||||||
|
@ -57,7 +57,6 @@ private:
|
||||||
|
|
||||||
const VPiece m_oldDet;
|
const VPiece m_oldDet;
|
||||||
VPiece m_newDet;
|
VPiece m_newDet;
|
||||||
QGraphicsScene *m_scene;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user