From: Alexander F. <Ale...@gm...> - 2001-08-22 12:22:25
|
Hi! As you might have seen, Kevin Radloff posted a fix for the DND which is initiated when clicking on the + sign and the contents of the widget are scrolled. This is the REVERSED patch: --- FileTree.cpp Tue Aug 21 21:42:28 2001 +++ /usr/local/src/kreatecd-1.0.7/kreatecd/FileTree.cpp Mon Apr 30 15:52:38 2001 @@ -517,6 +517,7 @@ void FileTree::contentsMousePressEvent ( QMouseEvent * e ) { + QListView::contentsMousePressEvent (e); if (!sourceonly) return; QPoint p(contentsToViewport(e->pos())); FileTreeItem *i = (FileTreeItem*)itemAt(p); @@ -526,7 +527,6 @@ m_dragPos=e->pos(); m_bDrag=true; } - QListView::contentsMousePressEvent (e); } void FileTree::contentsMouseReleaseEvent ( QMouseEvent * ) { The fix seems ok to me and it seems to work. If nobody objects I will commit this to CVS Alexander |