|
|
|
@ -397,6 +397,10 @@ void CSMWorld::CloneCommand::redo()
|
|
|
|
|
{
|
|
|
|
|
mModel.cloneRecord (mIdOrigin, mId, mType);
|
|
|
|
|
applyModifications();
|
|
|
|
|
for (auto& value : mOverrideValues)
|
|
|
|
|
{
|
|
|
|
|
mModel.setData(mModel.getModelIndex (mId, value.first), value.second);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CSMWorld::CloneCommand::undo()
|
|
|
|
@ -404,6 +408,11 @@ void CSMWorld::CloneCommand::undo()
|
|
|
|
|
mModel.removeRow (mModel.getModelIndex (mId, 0).row());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CSMWorld::CloneCommand::setOverrideValue(int column, QVariant value)
|
|
|
|
|
{
|
|
|
|
|
mOverrideValues.emplace_back(std::make_pair(column, value));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CSMWorld::CreatePathgridCommand::CreatePathgridCommand(IdTable& model, const std::string& id, QUndoCommand *parent)
|
|
|
|
|
: CreateCommand(model, id, parent)
|
|
|
|
|
{
|
|
|
|
|