QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
Abstract base class that may be implemented to handle new types of data to be dropped or pasted in QGIS layouts. More...
#include <qgslayoutcustomdrophandler.h>
Public Member Functions | |
QgsLayoutCustomDropHandler (QObject *parent=nullptr) | |
Constructor for QgsLayoutCustomDropHandler. | |
virtual Q_DECL_DEPRECATED bool | handleFileDrop (QgsLayoutDesignerInterface *iface, const QString &file) |
Called when the specified file has been dropped onto a QGIS layout. | |
virtual bool | handleFileDrop (QgsLayoutDesignerInterface *iface, QPointF dropPoint, const QString &file) |
Called when the specified file has been dropped onto a QGIS layout. | |
virtual bool | handlePaste (QgsLayoutDesignerInterface *iface, QPointF pastePoint, const QMimeData *data, QList< QgsLayoutItem * > &pastedItems) |
Called when the specified MIME data has been pasted onto a QGIS layout. | |
Abstract base class that may be implemented to handle new types of data to be dropped or pasted in QGIS layouts.
Definition at line 32 of file qgslayoutcustomdrophandler.h.
QgsLayoutCustomDropHandler::QgsLayoutCustomDropHandler | ( | QObject * | parent = nullptr | ) |
Constructor for QgsLayoutCustomDropHandler.
Definition at line 20 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 26 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 31 of file qgslayoutcustomdrophandler.cpp.
|
virtual |
Called when the specified MIME data has been pasted onto a QGIS layout.
If true
is returned, then the handler has accepted this data and it should not be further processed (e.g. by other QgsLayoutCustomDropHandler).
The pastePoint point specifies the location (in layout coordinates) at which the paste occurred.
The base class implementation does nothing.
iface | pointer to the layout designer interface |
pastePoint | layout point at which the paste should occur |
data | MIME data to paste |
pastedItems | should be filled with any newly created items as a result of the paste |
true
if the handler accepted and processed the paste operationDefinition at line 36 of file qgslayoutcustomdrophandler.cpp.