DropSupport Class

(Utils::DropSupport)

Public Types

class FileSpec

Public Functions

DropSupport(QWidget *parentWidget, const DropFilterFunction &filterFunction = DropFilterFunction())
bool isFileDrop(QDropEvent *event) const
bool isValueDrop(QDropEvent *event) const

Signals

void filesDropped(const QList<Utils::DropSupport::FileSpec> &files, const QPoint &dropPos)
void valuesDropped(const QList<QVariant> &values, const QPoint &dropPos)

Static Public Members

QStringList mimeTypesForFilePaths()

Protected Functions

bool eventFilter(QObject *obj, QEvent *event) override

Member Function Documentation

DropSupport::DropSupport(QWidget *parentWidget, const DropFilterFunction &filterFunction = DropFilterFunction())

Default constructs an instance of DropSupport.

[protected] bool DropSupport::eventFilter(QObject *obj, QEvent *event)

[signal] void DropSupport::filesDropped(const QList<Utils::DropSupport::FileSpec> &files, const QPoint &dropPos)

bool DropSupport::isFileDrop(QDropEvent *event) const

bool DropSupport::isValueDrop(QDropEvent *event) const

[static] QStringList DropSupport::mimeTypesForFilePaths()

[signal] void DropSupport::valuesDropped(const QList<QVariant> &values, const QPoint &dropPos)