#include <Workspace/Presentation/outputactions.h>
◆ OutputActions() [1/2]
- Parameters
-
output | The output this object should provide actions for. |
◆ OutputActions() [2/2]
- Parameters
-
output | The output this object should provide actions for. |
outputPort | The output port this object should provide actions for. |
◆ ~OutputActions()
◆ customContextMenu()
void customContextMenu |
( |
| ) |
|
Creates a custom context menu at the current mouse cursor location.
◆ dragStart()
void dragStart |
( |
QWidget * |
dragSource | ) |
|
- Parameters
-
dragSource | The widget that initiated the drag request. |
Performs a drag and drop operation using dragSource as the initiator of the request. The drag is assumed to correspond to a drag from what this actions object refers to.
- Postcondition
- The drag and drop will be completed or aborted by the time dragStart() returns.
- See also
- isDroppable(), drop()
◆ drop()
void drop |
( |
const QMimeData & |
mimeData | ) |
|
- Parameters
-
mimeData | The MIME data from an active drag event. |
- Precondition
- The drag that owns mimeData must have previously resulted in mimeData being passed to dragEnter() and/or dragMove() for validation. If either of those two functions return false, drop() must not be called with that mimeData.
- See also
- dragStart(), isDroppable()
◆ getOutput()
- Returns
- The output that this object is for.
◆ isDroppable()
bool isDroppable |
( |
const QMimeData & |
mimeData | ) |
|
- Parameters
-
mimeData | The MIME data from an active drag event. |
- Returns
- True if the mimeData holds the information required that would allow a valid drop on this output.
- See also
- dragStart(), drop()