KDragWidgetDecorator Class
A decorator which adds drag-support to widgets. More...
- Header:
#include <KDragWidgetDecorator> - CMake:
find_package(KF6 REQUIRED COMPONENTS WidgetsAddons)
target_link_libraries(mytarget PRIVATE KF6::WidgetsAddons) - Inherits: KDragWidgetDecoratorBase
List of all members, including inherited members
Public Types
Public Functions
- KDragWidgetDecorator<Widget>::DragObjectFactory dragObjectFactory() const
- void setDragObjectFactory(KDragWidgetDecorator<Widget>::DragObjectFactory factory)
Detailed Description
This is a decorator using an event filter to implement drag-support in widgets.
You must set the dragObjectFactory to specify the QDrag to be used.
Member Type Documentation
KDragWidgetDecorator::DragObjectFactory
Member Function Documentation
KDragWidgetDecorator<Widget>::DragObjectFactory KDragWidgetDecorator::dragObjectFactory() const
Returns the QDrag factory used by this decorator
See also setDragObjectFactory()
void KDragWidgetDecorator::setDragObjectFactory(KDragWidgetDecorator<Widget>::DragObjectFactory factory)
Set a factory to be used by this decorator
factory the new QDrag factory to use
See also dragObjectFactory()