D14633: Fix drag'n'drop behaviour in ProjectTreeView plugin
noreply at phabricator.kde.org
Sun Aug 5 18:20:54 BST 2018
vkorneev created this revision.
Restricted Application added a project: KDevelop.
Restricted Application added a subscriber: kdevelop-devel.
vkorneev requested review of this revision.
Drag'n'drop target folders were switiching between open and closed state.
The fix changes this behaviour to only expanding the previously closed fodler
items and not changing the state of the expanded ones.
Simply passing the DragMoveEvent to QTreeView::dragMoveEvent only for closed
folder items was not enough, because QTreeView:timerEvent (which is actived
by timer set up in QTreeView::timerEvent) don't track the item which caused
the starting of the timer. So sometimes passing the mouse cursor over the
closed folder and stopping in over the expanded folder makes the expanded one
bug377023 (branched from master)
Cc: kdevelop-devel, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the KDevelop-devel