gui::DragListView Class Reference

Drag and drop enhanced QListView. More...

#include <draglistview.h>

List of all members.

Signals

void dragDrop (TreeItemAbstract *source, TreeItemAbstract *target)
void dragDropOther (TreeItemAbstract *source, TreeItemAbstract *target)

Public Member Functions

 DragListView (QWidget *parent, const char *name=0, WFlags f=0)
 ~DragListView ()

Protected Member Functions

virtual void contentsDragMoveEvent (QDragMoveEvent *e)
virtual void contentsDropEvent (QDropEvent *e)
virtual QDragObject * dragObject ()

Detailed Description

Drag and drop enhanced QListView.

Class wrapping QListView, providing drag and drop functionality


Constructor & Destructor Documentation

gui::DragListView::DragListView ( QWidget *  parent,
const char *  name = 0,
WFlags  f = 0 
)

Same constructor as QListView

Parameters:
parent Parent window
name Widget name
f Widget flags
gui::DragListView::~DragListView (  ) 

Destructor


Member Function Documentation

void gui::DragListView::contentsDragMoveEvent ( QDragMoveEvent *  e  )  [protected, virtual]

Handler called when something is moved over the window. The event should be accepted if there is some change for drop to be accepted

Parameters:
e Event

References debug::DBG_DBG, and guiPrintDbg.

void gui::DragListView::contentsDropEvent ( QDropEvent *  e  )  [protected, virtual]

Handler called when something is dropped in the window If it is tree item from this or another another window

Parameters:
e Event

References gui::TreeItemAbstract::data, debug::DBG_DBG, dragDrop(), dragDropOther(), guiPrintDbg, and gui::TREEITEM_TYPE.

void gui::DragListView::dragDrop ( TreeItemAbstract source,
TreeItemAbstract target 
) [signal]

Invoked when dragging one item to another within the same tree window

Parameters:
source Source (dragged) item
target Target item

Referenced by contentsDropEvent().

void gui::DragListView::dragDropOther ( TreeItemAbstract source,
TreeItemAbstract target 
) [signal]

Invoked when dragging one item to another in different tree window (possibly in different document)

Parameters:
source Source (dragged) item
target Target item

Referenced by contentsDropEvent().

QDragObject * gui::DragListView::dragObject (  )  [protected, virtual]

Called on starting a drag to create dragobject containing selected item

Returns:
QDragObject containing selected item

The documentation for this class was generated from the following files: