swift
|
Country selector. More...
Signals | |
void | countryChanged (const swift::misc::CCountry &country) |
Country has been changed. | |
Public Member Functions | |
CDbCountrySelectorComponent (QWidget *parent=nullptr) | |
Constructor. | |
~CDbCountrySelectorComponent () | |
Destructor. | |
void | setCountry (const swift::misc::CCountry &country) |
Current country. | |
void | setCountry (const QString &isoCode) |
Current country. | |
swift::misc::CCountry | getCountry () const |
Country. | |
void | setReadOnly (bool readOnly) |
Read only. | |
bool | isSet () const |
Set with valid country. | |
void | clear () |
Clear selection. | |
![]() | |
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 | allowDrop (bool allowed) |
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. | |
Country selector.
Definition at line 35 of file dbcountryselectorcomponent.h.
|
protectedvirtual |
Definition at line 105 of file dbcountryselectorcomponent.cpp.
|
protectedvirtual |
Definition at line 118 of file dbcountryselectorcomponent.cpp.
|
protectedvirtual |
Definition at line 112 of file dbcountryselectorcomponent.cpp.
|
protectedvirtual |
Definition at line 124 of file dbcountryselectorcomponent.cpp.