Abstracts away differences between Qt4 and Qt5 in model DnD support.
More...
#include "dndactionsmixin.h"
template<typename Model>
class LC::Util::DndActionsMixin< Model >
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()).
- Template Parameters
-
Model | The source model type that you wish to derive from. |
- See also
- supportedDragActions()
-
setSupportedDragActions()
-
supportedDropActions()
-
setSupportedDropActions()
Definition at line 42 of file dndactionsmixin.h.
◆ DndActionsMixin()
template<typename Model >
template<typename... Args>
Constructs the model passing the arguments to the base constructor.
- Parameters
-
[in] | args | The list of parameters to pass to the constructor of the base Model. |
- Template Parameters
-
Args | The variadic template parameter pack of arguments for the base Model constructor. |
Definition at line 62 of file dndactionsmixin.h.
◆ setSupportedDragActions()
template<typename Model >
◆ setSupportedDropActions()
template<typename Model >
◆ supportedDragActions()
template<typename Model >
◆ supportedDropActions()
template<typename Model >
The documentation for this class was generated from the following file: