Simplify code in MnemonicAttached
Summary:
Having a map of an object into a value is equivalent to having this
value as an attribute.
Reviewers: Kirigami, mart
Reviewed By: Kirigami, mart
Subscribers: plasma-devel
Tags: Kirigami
Differential Revision: https://phabricator.kde.org/D17583