swift
|
Area where items can be dropped. More...
Signals | |
void | droppedValueObject (const swift::misc::CVariant &droppedObject) |
Dropped value object. | |
Public Member Functions | |
CDropSite (QWidget *parent=nullptr) | |
Constructor. | |
void | setInfoText (const QString &dropSiteText) |
Set text for drop site. | |
void | allowDrop (bool allowed) |
Drop allowed. | |
![]() | |
virtual | ~CDropBase () |
Dtor. | |
void | setAcceptedMetaTypeIds (const QList< int > &ids) |
Accepted ids. | |
void | addAcceptedMetaTypeId (int id) |
Accepted ids. | |
virtual bool | isDropAllowed () const |
Drop allowed? | |
virtual bool | isJsonFileDropAllowed () const |
File drop allowed? | |
virtual void | allowJsonFileDrop (bool allow) |
Allow JSON file drop. | |
bool | acceptDrop (const QMimeData *mime) const |
Accept drop? | |
swift::misc::CVariant | toCVariant (const QMimeData *mime) const |
Mime data to CVariant (normally encapsulating a value object) | |
Protected Member Functions | |
virtual void | dragEnterEvent (QDragEnterEvent *event) |
virtual void | dragMoveEvent (QDragMoveEvent *event) |
virtual void | dragLeaveEvent (QDragLeaveEvent *event) |
virtual void | dropEvent (QDropEvent *event) |
![]() | |
CDropBase () | |
Ctor. | |
Area where items can be dropped.
Definition at line 31 of file dropsite.h.
|
protectedvirtual |
Definition at line 54 of file dropsite.cpp.
|
protectedvirtual |
Definition at line 68 of file dropsite.cpp.
|
protectedvirtual |
Definition at line 61 of file dropsite.cpp.
|
protectedvirtual |
Definition at line 75 of file dropsite.cpp.