12 #include <QAbstractItemModel> 34 template<
typename Model>
37 Qt::DropActions Drags_;
38 Qt::DropActions Drops_;
48 template<
typename... Args>
50 :
Model { std::forward<Args> (args)... }
51 , Drags_ { Model::supportedDragActions () }
52 , 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
Qt4-style getters and setters for DnD actions.
The human-readable name of the device model (QString).
void setSupportedDropActions(Qt::DropActions acts)