Manually keep track of jobs sources

Review Request #123502 - Created April 25, 2015 and submitted

Information
Kai Uwe Broulik
plasma-workspace
Plasma/5.3
346673
Reviewers
plasma
mklapetek

DataSource sources is a QStringList property which means changes within cannot be tracked causing all the job delegates to be destroyed and re-created when sourcesChanged it emitted. This is pretty wasteful but also causes the delegate to lose their sate (eg. details expanded).

Adding, removing and pausing jobs works as expected, when a job appears or disappears the other delegates keep their state.
The only slight imperfection is now that the indeterminate state of multiple jobs is no longer move in sync because the items are no longer created at the same time.

Kai Uwe Broulik
Martin Klapetek
Kai Uwe Broulik
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit bc5c47537f3bbb706b3fe7af66508f5ef2fadc6e by Kai Uwe Broulik to branch Plasma/5.3.
Loading...