Added text to undo/redo commands.

This commit is contained in:
Tats
2015-07-18 12:55:41 -06:00
parent f9a98f0f09
commit 5ce318fab3
+3
View File
@@ -4,6 +4,7 @@
AddShapesCommand::AddShapesCommand(MainWindow *mainWindow, uid mappingId, QUndoCommand *parent):
QUndoCommand(parent)
{
setText(QObject::tr("Add mapping"));
m_mainWindow = mainWindow;
m_mappingId = mappingId;
}
@@ -78,6 +79,7 @@ bool MoveVertexCommand::mergeWith(const QUndoCommand* other)
MoveShapesCommand::MoveShapesCommand(MapperGLCanvas *mapperGLCanvas, QMouseEvent *event, const QPointF &point, QUndoCommand *parent) :
QUndoCommand(parent)
{
setText(QObject::tr("Move shape"));
m_mapperGLCanvas = mapperGLCanvas;
m_shape = m_mapperGLCanvas->getCurrentShape().data();
m_event = event;
@@ -105,6 +107,7 @@ void MoveShapesCommand::redo()
DeleteMappingCommand::DeleteMappingCommand(MainWindow *mainWindow, uid mappingId, QUndoCommand *parent) :
QUndoCommand(parent)
{
setText(QObject::tr("Delete mapping"));
m_mainWindow = mainWindow;
m_mappingId = mappingId;
}