How to display the insert index when sorting manually (Tasks applet)
Aaron J. Seigo
aseigo at kde.org
Mon Mar 16 18:14:33 CET 2009
On Sunday 15 March 2009, Christian Mollekopf wrote:
> Therefore i suggest using a cursor like bar to display the insert index.
probably much easier would be to simply adjust the drawing of the item itself
rather than inserting a whole new item and managing the layout issues.
so if this is a "regular" item:
[ icon title ]
a spacer drop would be:
[ ] [icontitle]
the layout would still see it as one item because, well, it would be.
the beauty of this approach is:
* you don't need to coordinate multiple items, each AbstractTaskItem just
handles its own dragEnter/dragHover/dragLeave events
* the layout is completely uninvolved in the process
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Qt Software
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20090316/65fab412/attachment.sig
More information about the Plasma-devel
mailing list