https://bugs.documentfoundation.org/show_bug.cgi?id=124633

Mike Kaganski <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |difficultyBeginner,
                   |                            |easyHack, skillCpp

--- Comment #2 from Mike Kaganski <[email protected]> ---
Code pointers:

the code to handle drag&drop in the list boxes is in
vcl/source/treelist/treelistbox.cxx. Look at SvTreeListBox::AcceptDrop, which
uses GetDropTarget to find out *below* which element to draw the drop cursor,
and which element to remember for actual drop. The drop method
(SvTreeListBox::ExecuteDrop), as well as drop cursor drawing method
(ImplShowTargetEmphasis), accept nullptr as target element, meaning "at the
top". So the question is how to make GetDropTarget return nullptr when mouse is
over top half of topmost element of the list (a hint: SvImpLBox::GetEntry might
need to be modified to take an optional out bool parameter telling if the pos
is at the top half of the element).

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to