<table><tr><td style="">vkorneev created this revision.<br />Restricted Application added a project: KDevelop.<br />Restricted Application added a subscriber: kdevelop-devel.<br />vkorneev requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D14633">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Drag'n'drop target folders were switiching between open and closed state.<br />
The fix changes this behaviour to only expanding the previously closed fodler<br />
items and not changing the state of the expanded ones.</p>
<p>Simply passing the DragMoveEvent to QTreeView::dragMoveEvent only for closed<br />
folder items was not enough, because QTreeView:timerEvent (which is actived<br />
by timer set up in QTreeView::timerEvent) don't track the item which caused<br />
the starting of the timer. So sometimes passing the mouse cursor over the<br />
closed folder and stopping in over the expanded folder makes the expanded one<br />
to close.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>BRANCH</strong><div><div>bug377023 (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D14633">https://phabricator.kde.org/D14633</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>plugins/projectmanagerview/projecttreeview.cpp<br />
plugins/projectmanagerview/projecttreeview.h</div></div></div><br /><div><strong>To: </strong>vkorneev<br /><strong>Cc: </strong>kdevelop-devel, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd<br /></div>