https://bugs.kde.org/show_bug.cgi?id=372699

--- Comment #1 from Eike Hein <h...@kde.org> ---
Git commit 9314abc1c8420afe21150bdf906cfacd3fc681bd by Eike Hein.
Committed on 25/11/2016 at 13:39.
Pushed by hein into branch 'master'.

Expose rowCount as data role in TaskGroupingProxyModel.

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.

Reviewers: #plasma, davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D3482

M  +1    -0    libtaskmanager/abstracttasksmodel.h
M  +3    -10   libtaskmanager/taskgroupingproxymodel.cpp

https://commits.kde.org/plasma-workspace/9314abc1c8420afe21150bdf906cfacd3fc681bd

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to