[KDirModel] Emit change for HasJobRole when jobs change
ClosedPublic

Authored by broulik on Nov 3 2017, 1:50 PM.

Details

Test Plan

I now have QML update live when a copy job comes and goes

Diff Detail

Repository
R241 KIO
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Nov 3 2017, 1:50 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptNov 3 2017, 1:50 PM
dfaure requested changes to this revision.Nov 5 2017, 8:44 PM
dfaure added inline comments.
src/widgets/kdirmodel.cpp
696

constBegin() / constEnd(), on the non-const m_allCurrentDestUrls, to avoid a detach?

703

You should use indexForNode() instead, to cover the case of the root URL, and to set the proper internal pointer in the index (for tree models).

This revision now requires changes to proceed.Nov 5 2017, 8:44 PM
broulik updated this revision to Diff 21954.Nov 6 2017, 11:33 AM
  • constBegin() on m_allCurrentDestUrls
  • Use indexForNode
dfaure accepted this revision.Nov 14 2017, 8:11 AM
This revision is now accepted and ready to land.Nov 14 2017, 8:11 AM
This revision was automatically updated to reflect the committed changes.