D14633: Fix drag'n'drop behaviour in ProjectTreeView plugin

Vyacheslav Korneev 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.

REVISION SUMMARY
  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
  to close.

REPOSITORY
  R32 KDevelop

BRANCH
  bug377023 (branched from master)

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

AFFECTED FILES
  plugins/projectmanagerview/projecttreeview.cpp
  plugins/projectmanagerview/projecttreeview.h

To: vkorneev
Cc: kdevelop-devel, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20180805/85e0f40b/attachment.html>


More information about the KDevelop-devel mailing list