Revision e619f39...

Go back to digest for 4th May 2014

Other in KDE Base

Martin Klapetek committed changes in [plasma-desktop] /kickoff:

Improve Kickoff's scrolling when changing categories

Use case: I'm in All Applications, I scroll down, select Utilities,
category switches inside Utilities and the scrollbar is at the same
bottom position from my first scroll, which means that I see the apps in
Utilities that are at the bottom instead starting from the top.

These are two changes: always scroll the view to top when going into a
subcategory and then always center on the parent category when going
level up. The breadcrumbs however store QModelIndex (which makes sense)
and QModelIndex cannot be used from QML, so I added a helper method to
the model that returns a row of the given index and the view then
centers on that row when going category up. Might not be good at all but
imho works&looks better.

REVIEW: 117757

File Changes

Modified 3 files
  • /kickoff
  •   applets/core/applicationmodel.cpp
  •   applets/core/applicationmodel.h
  •   applets/package/contents/ui/ApplicationsView.qml
3 files changed in total