Revision 7396fe9...

Go back to digest for 26th June 2011

Features in Games

Shantanu Tushar Jha committed changes in [gluon/shantanu-gsoc] /:

Store items in QList instead of an ordered QMap. Reason for this is that
while adding items to game list, we need to know which row we are adding so
that we can pass it to beginInsertRows. If we use a QMap, its very cumbersome
to calculate which row the insertion will take place. With a QList, we do insertion
at the end. Another QHash is needed to find out which game is at which index.

Add few convenience functions to the model to accommodate the above change.
Now, the model will NOT reset, instead it updates and inserts Game Items dynamically.
Make it possible for the view to set new rating using setData. Testing pending.
Add new enums to describe the game status in more detail. Upgradable and OwnedByUser
disabled as of now.
Make it possible for the OcsProvider to fetch details about a particular game.
Fix the QML Rating widget to properly update its values.
Fix coding style in OcsProvider.

File Changes

Modified 12 files
  •   player/lib/ocsgamedetailsprovider.cpp
  •   player/lib/ocsgamedetailsprovider.h
  •   player/lib/ocsprovider.cpp
  •   player/lib/ocsprovider.h
  •   player/lib/ocsratingprovider.cpp
  •   player/lib/ocsratingprovider.h
  •   player/lib/models/allgameitemsmodel.cpp
  •   player/lib/models/allgameitemsmodel.h
  •   player/lib/models/gameitem.cpp
  •   player/lib/models/gameitem.h
  •   player/lib/models/gameitemsmodel.cpp
  •   player/qmlplasmoid/applets/player/package/contents/ui/RatingWidget.qml
12 files changed in total