Add base class for QWidgets and QML KCMs
Open, Needs TriagePublic

Description

Currently the QML KCM class in in kdeclarative and have different methods to express the state that the QWidgets one. In the KCModuleQml class (kcmutils) those from the QML KCM get mapped to the one of the QWidgets KCM. This causes the need for some ugly workarounds, like casting an enum value to an int and then to a different enum.

My idea would be to add a common base class for both QWidgets and QML KCMs which contains all the Properties/Methods/Signals needed. This would also make it easier to extend the KCMs without duplicating the effort.

With T12150 we could put this base class in KCMUtils.

alex created this task.Apr 11 2021, 9:35 AM
alex updated the task description. (Show Details)Apr 11 2021, 6:33 PM
davidre moved this task from Backlog to Needs Input on the KF6 board.Apr 12 2021, 6:50 AM
alex added a comment.Apr 18 2021, 2:18 PM

On the Saturday meeting we agreed on the goal of the task. Idea idea in the discussion was that we could use the ConfigModule as a base for this abstract task.

For that we would need to move the some QtQuick related methods/properties, after that the class will only depend on QtCore & KCoreAddons.