Switched to QSharedPointer for handling Operation*