Revision 88463ea...

Go back to digest for 14th October 2012

Bug Fixes in KDE Base

Aaron J. Seigo committed changes in [kde-runtime] plasma/declarativeimports/core/datamodel.cpp:

dataengine based models set their roles when setting the data, so respond to that

syncRoleNames is fast (and faster now that we check that the role names actually changed)
but it may be nicer to find a more efficient way in future than checking the role names
on all / any data changes. in fact, the documentation for QAbstractItemModel::setRoleNames says:

"This function must be called before the model is used.
Modifying the role names after the model has been set may result in undefined behaviour."

File Changes

Modified 1 files
  • plasma/declarativeimports/core/datamodel.cpp
1 files changed in total