33 #include <QAbstractItemModel> 58 template<
typename Model>
61 Qt::DropActions Drags_;
62 Qt::DropActions Drops_;
72 template<
typename... Args>
74 :
Model { std::forward<Args> (args)... }
75 , Drags_ { Model::supportedDragActions () }
76 , Drops_ { Model::supportedDropActions () }
Qt::DropActions supportedDragActions() const override
DndActionsMixin(Args &&... args)
Constructs the model passing the arguments to the base constructor.
void setSupportedDragActions(Qt::DropActions acts)
Qt::DropActions supportedDropActions() const override
Abstracts away differences between Qt4 and Qt5 in model DnD support.
The human-readable name of the device model (QString).
void setSupportedDropActions(Qt::DropActions acts)