Review Request: Add move support to cmake, refactor some CMakeLists/ChangesWidget handling bits.

Olivier Jean de Gaalon olivier.jg at gmail.com
Tue Apr 26 03:42:09 UTC 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/101233/
-----------------------------------------------------------

Review request for KDevelop.


Summary
-------

Add move support to cmake, refactor some CMakeLists/ChangesWidget handling bits.

See also the KDevPlatform patch.

Apol:
To preempt your question regarding the reloadFiles function...
Given a a folder (say "folder3") within a folder (say "folder 2") within a folder (say "folder 1").
If you move "folder 3" out of "folder 2", into "folder 1".
::reloadFiles will be called once, and will create a ProjectFolderItem for folder 1
::parse will be called once and will create a CMakeFolderItem for folder 1
::reloadFiles will be called towards the end of ::parse, loop through the project items in the folder, and check them against "entries"
::reloadFiles will find the ProjectFolderItem for "folder 1", and find the string in entries, and remove the string from entries
::reloadFiles will find the CMakeFolderItem for "folder 1", and NOT find the string in entries, and qDeleteAll(), removing both items
::reloadFiles will return to ::parse who will return a QList of the CMakeFolders it created, one of which was just deleted
ImportProjectJob crashes.
The changes to reload files prevent this crash


This addresses bug 72921.
    http://bugs.kde.org/show_bug.cgi?id=72921


Diffs
-----

  languages/cpp/codegen/cppnewclass.cpp dc4036c 
  projectmanagers/cmake/cmakemanager.h 78fa569 
  projectmanagers/cmake/cmakemanager.cpp 054d488 
  projectmanagers/custommake/custommakemanager.h 8c2d4d7 
  projectmanagers/custommake/custommakemanager.cpp d025537 

Diff: http://git.reviewboard.kde.org/r/101233/diff


Testing
-------

{Adding, removing, moving} in {bulk, various nestings, one-by-one} to/from {targets, folders} repeatedly.


Thanks,

Olivier Jean de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20110426/c49bc558/attachment.html>


More information about the KDevelop-devel mailing list