Add use of 'self' to access currently selected model element

Change-Id: I4e47c6b85e98d8295ad7f77323c17bbc1b8cbfc1
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>