30#ifndef QGSIMAGEDROPTEXTEDIT_H
31#define QGSIMAGEDROPTEXTEDIT_H
48class GUI_EXPORT QgsImageDropTextEdit :
public QTextEdit
53 QgsImageDropTextEdit( QWidget *parent =
nullptr );
54 ~QgsImageDropTextEdit()
override;
56 void dropImage(
const QImage &image,
const QString &format );
57 void dropLink(
const QUrl &url );
60 bool canInsertFromMimeData(
const QMimeData *source )
const override;
61 void insertFromMimeData(
const QMimeData *source )
override;
62 void mouseMoveEvent( QMouseEvent *e )
override;
63 void mouseReleaseEvent( QMouseEvent *e )
override;
66 QString mActiveAnchor;
67 std::unique_ptr< QgsTemporaryCursorOverride > mCursorOverride;
Temporarily sets a cursor override for the QApplication for the lifetime of the object.