QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
Layout drop handler for handling QPT files. More...
#include <qgslayoutqptdrophandler.h>
Public Member Functions | |
QgsLayoutQptDropHandler (QObject *parent=nullptr) | |
constructor More... | |
bool | handleFileDrop (QgsLayoutDesignerInterface *iface, QPointF point, const QString &file) override |
Called when the specified file has been dropped onto a QGIS layout. More... | |
Public Member Functions inherited from QgsLayoutCustomDropHandler | |
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... | |
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. More... | |
Layout drop handler for handling QPT files.
Definition at line 32 of file qgslayoutqptdrophandler.h.
QgsLayoutQptDropHandler::QgsLayoutQptDropHandler | ( | QObject * | parent = nullptr | ) |
constructor
Definition at line 24 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 30 of file qgslayoutqptdrophandler.cpp.