![]() |
LeechCraft
0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
|
Interface for tabs supporting Drag'n'Drop on tab level. More...
#include "idndtab.h"
Public Member Functions | |
virtual | ~IDNDTab () |
virtual void | FillMimeData (QMimeData *data)=0 |
Called when this tab starts being dragged. More... | |
virtual void | HandleDragEnter (QDragMoveEvent *event)=0 |
Called when something is being dragged over this tab. More... | |
virtual void | HandleDrop (QDropEvent *event)=0 |
Called when something is dropped over this tab. More... | |
Interface for tabs supporting Drag'n'Drop on tab level.
Tabs (implementing ITabWidget) that support Drag'n'Drop on tab level, like dragging one tab to another, can implement this interface. For example, a Poshuku tab can fill a DnD object with current page URL and its snapshot upon drag start.
|
pure virtual |
Called when this tab starts being dragged.
The implementation should fill the data with the information relevant to the current page, like a web page URL.
[out] | data | The QMimeData object to fill. |
|
pure virtual |
Called when something is being dragged over this tab.
This function is called by the LeechCraft Core when a drag operation is in progress and the mouse cursor enters the tab corresponding to this widget in the tab bar. The implementation may call QDragMoveEvent::acceptProposedEvent() on the event or ignore it.
This function is somewhat similar to QWidget::dragEnterEvent() or QWidget::dragMoveEvent().
[in,out] | event | The object describing the DnD operation. |
|
pure virtual |
Called when something is dropped over this tab.
This function is called by the LeechCraft Core when a drag operation is in progress and the drag is dropped on the corresponding tab.
This function is somewhat similar to QWidget::dropEvent().
[in] | event | The object describing the DnD operation. |