Review Request: Add ordering to the project build set.
Ivan Shapovalov
intelfx100 at gmail.com
Thu Dec 20 19:44:46 UTC 2012
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/106954/
-----------------------------------------------------------
(Updated Dec. 20, 2012, 7:44 p.m.)
Review request for KDevelop.
Changes
-------
Fix crash with test project controller (which does not have a build set model).
BTW - anybody?
Description
-------
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
Diff: http://git.reviewboard.kde.org/r/106954/diff/
Testing
-------
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.
Thanks,
Ivan Shapovalov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20121220/903485df/attachment.html>
More information about the KDevelop-devel
mailing list