LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::DndActionsMixin< Model > Class Template Reference

Qt4-style getters and setters for DnD actions. 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)

Detailed Description

template<typename Model>
class LC::Util::DndActionsMixin< Model >

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()).

Template Parameters
ModelThe source model type that you wish to derive from.
See also
supportedDragActions()
setSupportedDragActions()
supportedDropActions()
setSupportedDropActions()

Definition at line 35 of file dndactionsmixin.h.

Constructor & Destructor Documentation

◆ DndActionsMixin()

template<typename Model>
template<typename... Args>
LC::Util::DndActionsMixin< Model >::DndActionsMixin ( Args &&... args)
inlineexplicit

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 49 of file dndactionsmixin.h.

References LC::Model, supportedDragActions(), and supportedDropActions().

Here is the call graph for this function:

Member Function Documentation

◆ setSupportedDragActions()

template<typename Model>
void LC::Util::DndActionsMixin< Model >::setSupportedDragActions ( Qt::DropActions acts)
inline

Definition at line 61 of file dndactionsmixin.h.

◆ setSupportedDropActions()

template<typename Model>
void LC::Util::DndActionsMixin< Model >::setSupportedDropActions ( Qt::DropActions acts)
inline

Definition at line 71 of file dndactionsmixin.h.

◆ supportedDragActions()

template<typename Model>
Qt::DropActions LC::Util::DndActionsMixin< Model >::supportedDragActions ( ) const
inlineoverride

Definition at line 56 of file dndactionsmixin.h.

Referenced by DndActionsMixin().

Here is the caller graph for this function:

◆ supportedDropActions()

template<typename Model>
Qt::DropActions LC::Util::DndActionsMixin< Model >::supportedDropActions ( ) const
inlineoverride

Definition at line 66 of file dndactionsmixin.h.

Referenced by DndActionsMixin().

Here is the caller graph for this function:

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.17609.g3dde4097dd-build/leechcraft-0.6.70-17609-g3dde4097dd/src/util/models/dndactionsmixin.h