QGIS API Documentation
3.12.1-București (121cc00ff0)
|
Abstract base class that may be implemented to handle new types of data to be dropped in QGIS layouts. More...
#include <qgslayoutcustomdrophandler.h>
Public Member Functions | |
QgsLayoutCustomDropHandler (QObject *parent=nullptr) | |
Constructor for QgsLayoutCustomDropHandler. More... | |
virtual Q_DECL_DEPRECATED bool | handleFileDrop (QgsLayoutDesignerInterface *iface, const QString &file) |
Called when the specified file has been dropped onto a QGIS layout. More... | |
virtual bool | handleFileDrop (QgsLayoutDesignerInterface *iface, QPointF dropPoint, const QString &file) |
Called when the specified file has been dropped onto a QGIS layout. More... | |
Abstract base class that may be implemented to handle new types of data to be dropped in QGIS layouts.
Definition at line 31 of file qgslayoutcustomdrophandler.h.
QgsLayoutCustomDropHandler::QgsLayoutCustomDropHandler | ( | QObject * | parent = nullptr | ) |
Constructor for QgsLayoutCustomDropHandler.
Definition at line 19 of file qgslayoutcustomdrophandler.cpp.
|
virtual |
Called when the specified file has been dropped onto a QGIS layout.
If true
is returned, then the handler has accepted this file and it should not be further processed (e.g. by other QgsLayoutCustomDropHandler).
The base class implementation does nothing.
Definition at line 25 of file qgslayoutcustomdrophandler.cpp.
|
virtual |
Called when the specified file has been dropped onto a QGIS layout.
If true
is returned, then the handler has accepted this file and it should not be further processed (e.g. by other QgsLayoutCustomDropHandler).
The dropPoint point specifies the location (in layout coordinates) at which the drop occurred.
The base class implementation does nothing.
Reimplemented in QgsLayoutQptDropHandler.
Definition at line 30 of file qgslayoutcustomdrophandler.cpp.