[Differential] [Request, 14 lines] D3482: Expose rowCount as data role in TaskGroupingProxyModel.

hein (Eike Hein) noreply at phabricator.kde.org
Thu Nov 24 09:36:42 UTC 2016


hein created this revision.
hein added reviewers: Plasma, davidedmundson.
hein added a subscriber: plasma-devel.
Restricted Application added a project: Plasma.

REVISION SUMMARY
  This adds a new data role "ChildCount" to AbstractTasksModel and
  implements it in TaskGroupingProxyModel.
  
  The purpose of this data role is as a means of signalling to a Qt
  Quick delegate for a top-level row that a property of the item -
  namely the number of children it has - has changed. Qt Quick's poor
  support for tree models makes the existing way of signaling this
  (rowsInserted) prohibitive to use.
  
  The Task Manager applet needs this info because it's in charge of
  telling the window manager about the screen coordinates of window
  delegates (through support code in this library). When a window is
  directly added to an existing group, there is no new delegate
  created, nor does the existing delegate change position. An
  increase of ChildCount will be used in this case to decide to
  publish delegate geo for the new window.
  
  CCBUG:372699

REPOSITORY
  rPLASMAWORKSPACE Plasma Workspace

BRANCH
  master

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

AFFECTED FILES
  libtaskmanager/abstracttasksmodel.h
  libtaskmanager/taskgroupingproxymodel.cpp

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

To: hein, #plasma, davidedmundson
Cc: plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20161124/d6026096/attachment.html>


More information about the Plasma-devel mailing list