<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I am working on making grouping work with drag and drop.<br>
It works, but one thing I need to do is override
DragDropViewImplementation::startDrag to resolve grouping if
necessary. This is not per se a problem, but I need to duplicate it
for the iconview and tableview. I would like to avoid that by
subclassing DragDropViewImplementation. However that doesn't work
due to usage of the DECLARE_VIEW_DRAG_DROP_METHODS(ParentViewClass)
macro which "hardcodes" DragDropViewImplementation.<br>
I don't see the point of it (just to be sure: obviously I am not
implying there is none), I think you could instead have a
constructor and pass ParentViewClass to the constructor, thus
allowing subclassing. Certain views (tableview) already don't use
the macro.<br>
<br>
<b>TLDR:</b><br>
Is there a catch when not using the
DECLARE_VIEW_DRAG_DROP_METHODS(ParentViewClass) macro?<br>
<br>
Also the dragEnterEvent, dropEvent, ... methods aren't virtual,
which would have to be changed as well - any particular reason for
that?<br>
<br>
Thanks for your help.<br>
<br>
Cheers,<br>
Simon<br>
</body>
</html>