Revision 500280f...

Go back to digest for 27th January 2013

Optimization in KDE-PIM

Christian Mollekopf committed changes in [zanshin] /:

Simplify distribution of selection-models.

Instead of relying on the proper call order and setting the selection model in the modelstack,
we replace each usage of the model by a getter, and create the model already properly connected on demand.

This way we not only get rid of call order problems, but we also simplify passing around all the models to the different views.
The new approach therefore simplifies adding new views.

File Changes

Modified 11 files
  •   src/actionlisteditor.cpp
  •   src/actionlisteditor.h
  •   src/maincomponent.cpp
  •   src/modelstack.cpp
  •   src/modelstack.h
  •   src/sidebar.cpp
  •   src/sidebar.h
  •   src/sidebarpage.cpp
  •   src/sidebarpage.h
  •   src/todometadatamodel.cpp
  •   tests/modelstacktest.cpp
11 files changed in total