![]() |
LeechCraft 0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
|
Abstracts away differences between Qt4 and Qt5 in model DnD support. More...
#include "dndactionsmixin.h"
Inheritance diagram for LC::Util::DndActionsMixin< Model >:
Collaboration diagram for LC::Util::DndActionsMixin< Model >: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) |
Abstracts away differences between Qt4 and Qt5 in model DnD support.
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 36 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 50 of file dndactionsmixin.h.
|
inline |
Definition at line 62 of file dndactionsmixin.h.
References LC::Util::Filter().
Here is the call graph for this function:
|
inline |
Definition at line 72 of file dndactionsmixin.h.
References LC::Util::Filter().
Here is the call graph for this function:
|
inlineoverride |
Definition at line 57 of file dndactionsmixin.h.
|
inlineoverride |
Definition at line 67 of file dndactionsmixin.h.