4 #ifndef SWIFT_GUI_DROPBASE_H
5 #define SWIFT_GUI_DROPBASE_H
25 void setAcceptedMetaTypeIds(
const QList<int> &ids);
28 void addAcceptedMetaTypeId(
int id);
37 virtual void allowDrop(
bool allowed) { m_allowDrop = allowed; }
43 bool acceptDrop(
const QMimeData *mime)
const;
53 bool m_allowDrop =
true;
54 bool m_acceptJsonFile =
false;
Utilities for dropping swift value objects.
virtual bool isJsonFileDropAllowed() const
File drop allowed?
virtual void allowDrop(bool allowed)
Drop allowed.
virtual ~CDropBase()=default
Dtor.
virtual void allowJsonFileDrop(bool allow)
Allow JSON file drop.
virtual bool isDropAllowed() const
Drop allowed?
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.