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;
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
SavePieceOptions::SavePieceOptions(const VPiece &oldDet, const VPiece &newDet, VAbstractPattern *doc, quint32 id,
|
||||
QGraphicsScene *scene, QUndoCommand *parent)
|
||||
SavePieceOptions::SavePieceOptions(const VPiece &oldDet, const VPiece &newDet, VAbstractPattern *doc, quint32 id, QUndoCommand *parent)
|
||||
: VUndoCommand(QDomElement(), doc, parent),
|
||||
m_oldDet(oldDet),
|
||||
m_newDet(newDet),
|
||||
m_scene(scene)
|
||||
m_newDet(newDet)
|
||||
{
|
||||
setText(tr("save detail option"));
|
||||
nodeId = id;
|
||||
|
|
|
@ -43,7 +43,7 @@ class SavePieceOptions : public VUndoCommand
|
|||
{
|
||||
public:
|
||||
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 void undo() Q_DECL_OVERRIDE;
|
||||
|
@ -57,7 +57,6 @@ private:
|
|||
|
||||
const VPiece m_oldDet;
|
||||
VPiece m_newDet;
|
||||
QGraphicsScene *m_scene;
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user