swift
Signals | Public Member Functions | Protected Member Functions | List of all members
swift::gui::components::CDbCountrySelectorComponent Class Reference

Country selector. More...

Inheritance diagram for swift::gui::components::CDbCountrySelectorComponent:
[legend]

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.
 
- Public Member Functions inherited from swift::gui::CDropBase
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)
 
- Protected Member Functions inherited from swift::gui::CDropBase
 CDropBase ()
 Ctor.
 

Detailed Description

Country selector.

Definition at line 35 of file dbcountryselectorcomponent.h.

Member Function Documentation

◆ dragEnterEvent()

void swift::gui::components::CDbCountrySelectorComponent::dragEnterEvent ( QDragEnterEvent *  event)
protectedvirtual

Definition at line 105 of file dbcountryselectorcomponent.cpp.

◆ dragLeaveEvent()

void swift::gui::components::CDbCountrySelectorComponent::dragLeaveEvent ( QDragLeaveEvent *  event)
protectedvirtual

Definition at line 118 of file dbcountryselectorcomponent.cpp.

◆ dragMoveEvent()

void swift::gui::components::CDbCountrySelectorComponent::dragMoveEvent ( QDragMoveEvent *  event)
protectedvirtual

Definition at line 112 of file dbcountryselectorcomponent.cpp.

◆ dropEvent()

void swift::gui::components::CDbCountrySelectorComponent::dropEvent ( QDropEvent *  event)
protectedvirtual

Definition at line 124 of file dbcountryselectorcomponent.cpp.


The documentation for this class was generated from the following files: