Review Request: Add ordering to the project build set.

Ivan Shapovalov intelfx100 at
Thu Dec 20 19:44:46 UTC 2012

This is an automatically generated e-mail. To reply, visit:

(Updated Dec. 20, 2012, 7:44 p.m.)

Review request for KDevelop.


Fix crash with test project controller (which does not have a build set model).

BTW - anybody?


The ordering is provided by adding another list, m_orderingCache, to the model.
It is stored per-session and contains all elements that were added to the model (even from unloaded projects). An element is removed from the ordering cache when and only when user removes it from the model by hand.
When an element is added into the model, it is firstly looked up in the ordering cache to determine its position and, if found, it is inserted into a corresponding position.
If not, the element is appended to both the model and the cache.

Diffs (updated)

  project/projectbuildsetmodel.h c37f6af 
  project/projectbuildsetmodel.cpp 67deb30 
  shell/projectcontroller.cpp 8467b6a 



Manual and existing unit-tests.

Do we need new unit-tests for this? If yes (and if everything else is accepted), I'll write tests.


Ivan Shapovalov

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the KDevelop-devel mailing list