Beispiel #1
0
bool ScaleMapObjectCommand::mergeWith(const QUndoCommand* other)
{
    const ScaleMapObjectCommand* scaleCommand = static_cast<const ScaleMapObjectCommand*>(other);

    MapObject* item = scaleCommand->object;

    if(item != object)
        return false;

    newScale = item->getScale();

    return true;
}