Drag and drop enhanced QListView. More...
#include <draglistview.h>
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 () |
Drag and drop enhanced QListView.
Class wrapping QListView, providing drag and drop functionality
| gui::DragListView::DragListView | ( | QWidget * | parent, | |
| const char * | name = 0, |
|||
| WFlags | f = 0 | |||
| ) |
Same constructor as QListView
| parent | Parent window | |
| name | Widget name | |
| f | Widget flags |
| gui::DragListView::~DragListView | ( | ) |
Destructor
| 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
| 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
| 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
| 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)
| 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