QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
Layout drop handler for handling QPT files. More...
#include <qgslayoutqptdrophandler.h>
Public Member Functions | |
QgsLayoutQptDropHandler (QObject *parent=nullptr) | |
constructor | |
bool | handleFileDrop (QgsLayoutDesignerInterface *iface, QPointF point, const QString &file) override |
Called when the specified file has been dropped onto a QGIS layout. | |
Public Member Functions inherited from QgsLayoutCustomDropHandler | |
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 | handlePaste (QgsLayoutDesignerInterface *iface, QPointF pastePoint, const QMimeData *data, QList< QgsLayoutItem * > &pastedItems) |
Called when the specified MIME data has been pasted onto a QGIS layout. | |
Layout drop handler for handling QPT files.
Definition at line 32 of file qgslayoutqptdrophandler.h.
QgsLayoutQptDropHandler::QgsLayoutQptDropHandler | ( | QObject * | parent = nullptr | ) |
constructor
Definition at line 25 of file qgslayoutqptdrophandler.cpp.
|
overridevirtual |
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 from QgsLayoutCustomDropHandler.
Definition at line 31 of file qgslayoutqptdrophandler.cpp.