6 #ifndef SWIFT_GUI_DROPSITE_H
7 #define SWIFT_GUI_DROPSITE_H
14 #include "gui/dropbase.h"
18 class QDragEnterEvent;
19 class QDragLeaveEvent;
40 void setInfoText(
const QString &dropSiteText);
43 void allowDrop(
bool allowed)
override;
51 virtual void dragEnterEvent(QDragEnterEvent *event)
override;
54 virtual void dragMoveEvent(QDragMoveEvent *event)
override;
57 virtual void dragLeaveEvent(QDragLeaveEvent *event)
override;
60 virtual void dropEvent(QDropEvent *event)
override;
64 void onStyleSheetsChanged();
70 bool m_allowDrop =
true;
71 QList<int> m_acceptedMetaTypes;
Utilities for dropping swift value objects.
Area where items can be dropped.
void droppedValueObject(const swift::misc::CVariant &droppedObject)
Dropped value object.
Wrapper around QVariant which provides transparent access to CValueObject methods of the contained ob...
#define SWIFT_GUI_EXPORT
Export a class or function from the library.