LeechCraft  0.6.70-3565-g2d86529
Modular cross-platform feature rich live environment.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LeechCraft::Util::DndActionsMixin< Model > Class Template Reference

Abstracts away differences between Qt4 and Qt5 in model DnD support. More...

#include "dndactionsmixin.h"

+ Inheritance diagram for LeechCraft::Util::DndActionsMixin< Model >:
+ Collaboration diagram for LeechCraft::Util::DndActionsMixin< Model >:

Public Member Functions

template<typename... Args>
 DndActionsMixin (Args &&...args)
 Constructs the model passing the arguments to the base constructor. More...
 

Detailed Description

template<typename Model>
class LeechCraft::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
ModelThe source model type that you wish to derive from.
See Also
supportedDragActions()
setSupportedDragActions()
supportedDropActions()
setSupportedDropActions()

Definition at line 59 of file dndactionsmixin.h.

Constructor & Destructor Documentation

template<typename Model >
template<typename... Args>
LeechCraft::Util::DndActionsMixin< Model >::DndActionsMixin ( Args &&...  args)
inline

Constructs the model passing the arguments to the base constructor.

Parameters
[in]argsThe list of parameters to pass to the constructor of the base Model.
Template Parameters
ArgsThe variadic template parameter pack of arguments for the base Model constructor.

Definition at line 75 of file dndactionsmixin.h.


The documentation for this class was generated from the following file: