swift
|
Airline ICAO selector. More...
Public Types | |
enum | Display { DisplayVDesignatorAndId , DisplayCompleterString } |
How to display the info. | |
Public Member Functions | |
CDbAirlineIcaoSelectorComponent (QWidget *parent=nullptr) | |
Constructor. | |
virtual | ~CDbAirlineIcaoSelectorComponent () |
Destructor. More... | |
QString | getRawDesignator () const |
Raw text designator. | |
void | displayWithIcaoDescription (bool description) |
Display ICAO description. | |
void | displayMode (Display mode) |
Display mode. | |
Base class overrides | |
virtual void | setReadOnly (bool readOnly) |
Read only. | |
virtual bool | setAirlineIcao (const swift::misc::aviation::CAirlineIcaoCode &icao) |
Current airline ICAO. | |
virtual void | clear () |
Clear selection. | |
![]() | |
virtual | ~CDbAirlineIcaoSelectorBase () |
Destructor. | |
bool | setAirlineIcao (int key) |
Current airline ICAO by key. | |
const swift::misc::aviation::CAirlineIcaoCode & | getAirlineIcao () const |
Airline ICAO. | |
bool | isSet () const |
Set with valid value. | |
![]() | |
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 QCompleter * | createCompleter () |
Create a new completer. More... | |
![]() | |
CDbAirlineIcaoSelectorBase (QWidget *parent=nullptr) | |
Constructor. | |
virtual void | dragEnterEvent (QDragEnterEvent *event) |
virtual void | dragMoveEvent (QDragMoveEvent *event) |
virtual void | dragLeaveEvent (QDragLeaveEvent *event) |
virtual void | dropEvent (QDropEvent *event) |
![]() | |
CDropBase () | |
Ctor. | |
Additional Inherited Members | |
![]() | |
void | changedAirlineIcao (const swift::misc::aviation::CAirlineIcaoCode &icao) |
ICAO was changed. | |
![]() | |
QScopedPointer< QCompleter > | m_completer |
completer used | |
swift::misc::aviation::CAirlineIcaoCode | m_currentIcao |
current ICAO object | |
Airline ICAO selector.
Definition at line 29 of file dbairlineicaoselectorcomponent.h.
|
virtual |
Destructor.
Definition at line 38 of file dbairlineicaoselectorcomponent.cpp.
|
protectedvirtual |
Create a new completer.
Implements swift::gui::components::CDbAirlineIcaoSelectorBase.
Definition at line 80 of file dbairlineicaoselectorcomponent.cpp.