[Differential] [Request, 1,400 lines] D986: Revamp of the activity switcher backend
ivan (Ivan Čukić)
noreply at phabricator.kde.org
Thu Feb 18 16:20:24 UTC 2016
ivan created this revision.
ivan added reviewers: mart, davidedmundson, sebas.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
REVISION SUMMARY
- Activities are sorted based on the last time used (an often requested feature, that makes meta+tab order activities like alt-tab orders windows - allows easy switching to the previous activity)
- The data models are created once, and reused instead of allowing QML to instantiate them
- Sorting logic is not duplicated in C++ and QML anymore (we now have a proper C++-instantiated model instead of having to rely on the QML one provided by KActivities QML module)
- Activity starting/stopping/switching methods are now in the backend module, no need to go through the model
Since Plasma 5.6 can not depend on KF5.20, some parts of KActivities
code are copied in the backport subfolder. This is to be removed after
5.6 is released, and Plasma will use the new
KActivities::ActivitiesModel class.
This change is important enough to warrant this trickery.
REPOSITORY
rPLASMADESKTOP Plasma Desktop
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D986
AFFECTED FILES
CMakeLists.txt
desktoppackage/contents/activitymanager/ActivityItem.qml
desktoppackage/contents/activitymanager/ActivityList.qml
imports/activitymanager/CMakeLists.txt
imports/activitymanager/activityswitcherextensionplugin.cpp
imports/activitymanager/backport/model_updaters.h
imports/activitymanager/backport/qflatset.h
imports/activitymanager/backport/switcheractivitiesmodel.cpp
imports/activitymanager/backport/switcheractivitiesmodel.h
imports/activitymanager/backport/switcheractivitiesmodel_p.h
imports/activitymanager/sortedactivitiesmodel.cpp
imports/activitymanager/sortedactivitiesmodel.h
imports/activitymanager/switcherbackend.cpp
imports/activitymanager/switcherbackend.h
EMAIL PREFERENCES
https://phabricator.kde.org/settings/panel/emailpreferences/
To: ivan, mart, davidedmundson, sebas
Cc: plasma-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160218/9ad36471/attachment.html>
More information about the Plasma-devel
mailing list