Cleanup use of TasksModel data roles.

Authored by hein on Jun 17 2016, 9:11 AM.

Description

Cleanup use of TasksModel data roles.

Summary:
Avoid a wall of prop rebindings to access roles outside the delegates
causing unnecessary calls to data().

Be 'typesafe' about testing against true. If a role returns QVariant(),
just binding it to e.g. a 'visible' prop still evaluates to true
incorrectly otherwise.

Reviewers: broulik, dfaure

Subscribers: plasma-devel

Tags: Plasma

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

Details

Committed
heinJun 17 2016, 10:31 AM
Differential Revision
D1934: Cleanup use of TasksModel data roles.
Parents
R119:197eb36e06f8: Avoid asking model to create string-serialized icon data where possible.
Branches
Unknown
Tags
Unknown