Example #1
0
bool RotateMapObjectCommand::mergeWith(const QUndoCommand* other)
{
    const RotateMapObjectCommand* rotateCommand = static_cast<const RotateMapObjectCommand*>(other);

    MapObject* item = rotateCommand->object;

    if(item != object)
        return false;

    newRotation = item->getRotation();

    return true;
}