QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
Public Member Functions | List of all members
QgsLayoutQptDropHandler Class Reference

Layout drop handler for handling QPT files. More...

#include <qgslayoutqptdrophandler.h>

Inheritance diagram for QgsLayoutQptDropHandler:
Inheritance graph
[legend]

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...
 

Detailed Description

Layout drop handler for handling QPT files.

Note
This class is not a part of public API
Since
QGIS 3.12

Definition at line 32 of file qgslayoutqptdrophandler.h.

Constructor & Destructor Documentation

◆ QgsLayoutQptDropHandler()

QgsLayoutQptDropHandler::QgsLayoutQptDropHandler ( QObject *  parent = nullptr)

constructor

Definition at line 24 of file qgslayoutqptdrophandler.cpp.

Member Function Documentation

◆ handleFileDrop()

bool QgsLayoutQptDropHandler::handleFileDrop ( QgsLayoutDesignerInterface iface,
QPointF  dropPoint,
const QString &  file 
)
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.

Since
QGIS 3.12

Reimplemented from QgsLayoutCustomDropHandler.

Definition at line 30 of file qgslayoutqptdrophandler.cpp.


The documentation for this class was generated from the following files: