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

Select airline by name. More...

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

Public Member Functions

 CDbAirlineNameSelectorComponent (QWidget *parent=nullptr)
 Constructor.
 
virtual ~CDbAirlineNameSelectorComponent ()
 Destructor. More...
 
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.
 
- Public Member Functions inherited from swift::gui::components::CDbAirlineIcaoSelectorBase
virtual ~CDbAirlineIcaoSelectorBase ()
 Destructor.
 
bool setAirlineIcao (int key)
 Current airline ICAO by key.
 
const swift::misc::aviation::CAirlineIcaoCodegetAirlineIcao () const
 Airline ICAO.
 
bool isSet () const
 Set with valid value.
 
- 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 QCompleter * createCompleter ()
 Create a new completer. More...
 
- Protected Member Functions inherited from swift::gui::components::CDbAirlineIcaoSelectorBase
 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)
 
- Protected Member Functions inherited from swift::gui::CDropBase
 CDropBase ()
 Ctor.
 

Additional Inherited Members

- Signals inherited from swift::gui::components::CDbAirlineIcaoSelectorBase
void changedAirlineIcao (const swift::misc::aviation::CAirlineIcaoCode &icao)
 ICAO was changed.
 
- Protected Attributes inherited from swift::gui::components::CDbAirlineIcaoSelectorBase
QScopedPointer< QCompleter > m_completer
 completer used
 
swift::misc::aviation::CAirlineIcaoCode m_currentIcao
 current ICAO object
 

Detailed Description

Select airline by name.

Definition at line 28 of file dbairlinenameselectorcomponent.h.

Constructor & Destructor Documentation

◆ ~CDbAirlineNameSelectorComponent()

swift::gui::components::CDbAirlineNameSelectorComponent::~CDbAirlineNameSelectorComponent ( )
virtual

Destructor.

Note
needed for forward declared QScopedPointer and needs to be in .cpp

Definition at line 35 of file dbairlinenameselectorcomponent.cpp.

Member Function Documentation

◆ createCompleter()

QCompleter * swift::gui::components::CDbAirlineNameSelectorComponent::createCompleter ( )
protectedvirtual

Create a new completer.

Implements swift::gui::components::CDbAirlineIcaoSelectorBase.

Definition at line 52 of file dbairlinenameselectorcomponent.cpp.


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