Fix returning of data in the helper example
Summary:
ActionReply::data() returns a value, not a reference, so its
modifications will be lost. Use ActionReply::addData() instead.
Also update the documentation.
Subscribers: Frameworks
Tags: Frameworks
Differential Revision: https://phabricator.kde.org/D11786