QGIS API Documentation 3.41.0-Master (57ec4277f5e)
Loading...
Searching...
No Matches
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
 
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.
 

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 25 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: