Use single inheritance for classes in dialogs
Differential Revision: https://phabricator.kde.org/D8757