Register AbstractTasksModel as uncreatable type.

Authored by hein on Dec 10 2016, 11:10 PM.

Description

Register AbstractTasksModel as uncreatable type.

Summary:
This makes the AdditionalRoles enum available to Qt Quick. Useful for
calling data() TasksModel from inside QML, which uses AbstractTasksModel
roles but doesn't actually inherit from AbstractTasksModel.

The reason TasksModel doesn't inherit from AbstractTasksModel is
because it inherits from QSortFilterProxyModel, and it doesn't fly
to multiple-inherit from two QObject-derived classes. This is also
why AdditionalRoles can't be moved to AbstractTasksModelIface easily.

The VDG is working on tooltip changes that require this.

Reviewers: Plasma, davidedmundson, subdiff

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D3641

Details

Committed
heinDec 10 2016, 11:35 PM
Differential Revision
D3641: Register AbstractTasksModel as uncreatable type.
Parents
R120:c03e543b5d3a: Merge remote-tracking branch 'origin/Plasma/5.8'
Branches
Unknown
Tags
Unknown