View Revision
ivan updated this revision to Diff 12098.
ivan added a comment.

I need help with this one.

I've temporarily added ModelTest and two QListViews to show the contents of the models.

KActivities::Stats::ResultModel has no problems according to both the ModelTest and the QListView it is shown in.

KAStatsFavoritesModel (placeholdermodel.cpp and kastatsfavoritesmodel.cpp) have a problem.

ModelTest does not give any meaningful message.

And the dashboard and the QListView show different data. Namely, if you try to add a new item not via drag and drop, but right-click and assign to current activity, the dashboard starts showing a few empty elements on the end of the model.

Addin via d-n-d does not seem to have the same problem. I've even tried simulating d-n-d adding when index is -1, but with no success.

I don't see where the problem is at the moment.


CHANGES SINCE LAST UPDATE
https://phabricator.kde.org/D3805?vs=9360&id=12098

REVISION DETAIL
https://phabricator.kde.org/D3805

AFFECTED FILES
CMakeLists.txt
applets/kicker/CMakeLists.txt
applets/kicker/package/contents/code/tools.js
applets/kicker/package/contents/ui/ActionMenu.qml
applets/kicker/plugin/computermodel.cpp
applets/kicker/plugin/computermodel.h
applets/kicker/plugin/favoritesmodel.cpp
applets/kicker/plugin/favoritesmodel.h
applets/kicker/plugin/kastatsfavoritesmodel.cpp
applets/kicker/plugin/kastatsfavoritesmodel.h
applets/kicker/plugin/kickerplugin.cpp
applets/kicker/plugin/modeltest.cpp
applets/kicker/plugin/modeltest.h
applets/kicker/plugin/placeholdermodel.cpp
applets/kicker/plugin/placeholdermodel.h
applets/kicker/plugin/recentusagemodel.cpp
applets/kicker/plugin/rootmodel.cpp
applets/kicker/plugin/rootmodel.h
applets/kicker/plugin/simplefavoritesmodel.cpp
applets/kicker/plugin/simplefavoritesmodel.h
applets/kicker/plugin/systemmodel.cpp

EMAIL PREFERENCES
https://phabricator.kde.org/settings/panel/emailpreferences/

To: ivan, mart, hein
Cc: plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol

Reply via email to