Revision 1206719

Go back to digest for 19th December 2010

Optimization in KDE-PIM

Tobias Koenig committed changes in /trunk/KDE/kdepim/mobile/lib:

Allow to repopulate the model on dataChanged signal of source model

We store the complete Item object in the ThreadGrouperModel to return
the thread leader or thread descendants on request. However if they change
in the EntityTreeModel we are not notified about that and our internal items
are not updated. As a fast fix we allow to repopulate the model on every
dataChanged signal of our source model. A smarter way would be to updated the
cached items or only store the QModelIndex of the sourceModel and request the
item on the fly.

File Changes

Modified 2 files
  • /trunk/KDE/kdepim/mobile/lib
  •   /threadgroupermodel.cpp
  •   /threadgroupermodel.h
2 files changed in total