![]() |
LeechCraft 0.6.70-17335-ge406ffdcaf
Modular cross-platform feature rich live environment.
|
Qt4-style getters and setters for DnD actions. More...
#include "dndactionsmixin.h"
Public Member Functions | |
template<typename... Args> | |
DndActionsMixin (Args &&... args) | |
Constructs the model passing the arguments to the base constructor. | |
Qt::DropActions | supportedDragActions () const override |
void | setSupportedDragActions (Qt::DropActions acts) |
Qt::DropActions | supportedDropActions () const override |
void | setSupportedDropActions (Qt::DropActions acts) |
Qt4-style getters and setters for DnD actions.
Derive from this class (and parametrize the template by desired base class like QStandardItemModel or QAbstractItemModel) to obtain Qt4-style getter and setter functions for supported drag and drop actions (supportedDragActions(), setSupportedDragActions(), supportedDropActions(), setSupportedDropActions()).
Model | The source model type that you wish to derive from. |
Definition at line 35 of file dndactionsmixin.h.
|
inlineexplicit |
Constructs the model passing the arguments to the base constructor.
[in] | args | The list of parameters to pass to the constructor of the base Model. |
Args | The variadic template parameter pack of arguments for the base Model constructor. |
Definition at line 49 of file dndactionsmixin.h.
References LC::Model, supportedDragActions(), and supportedDropActions().
|
inline |
Definition at line 61 of file dndactionsmixin.h.
|
inline |
Definition at line 71 of file dndactionsmixin.h.
|
inlineoverride |
Definition at line 56 of file dndactionsmixin.h.
Referenced by DndActionsMixin().
|
inlineoverride |
Definition at line 66 of file dndactionsmixin.h.
Referenced by DndActionsMixin().