|
FlightGear next
|
#include <CarriersLocationModel.hxx>
Inherits QAbstractListModel.
Public Types | |
| enum | Roles { GeodRole = Qt::UserRole + 1 , GuidRole = Qt::UserRole + 2 , IdentRole = Qt::UserRole + 3 , NameRole = Qt::UserRole + 4 , IconRole = Qt::UserRole + 5 , TypeRole = Qt::UserRole + 6 , NavFrequencyRole = Qt::UserRole + 7 , DescriptionRole = Qt::UserRole + 8 } |
Public Member Functions | |
| CarriersLocationModel (QObject *parent=nullptr) | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| QHash< int, QByteArray > | roleNames () const override |
| int | indexOf (const QString name) const |
| SGGeod | geodForIndex (int index) const |
| QString | pennantForIndex (int index) const |
| QStringList | parkingsForIndex (int index) const |
Definition at line 12 of file CarriersLocationModel.hxx.
| Enumerator | |
|---|---|
| GeodRole | |
| GuidRole | |
| IdentRole | |
| NameRole | |
| IconRole | |
| TypeRole | |
| NavFrequencyRole | |
| DescriptionRole | |
Definition at line 27 of file CarriersLocationModel.hxx.
|
explicit |
Definition at line 10 of file CarriersLocationModel.cxx.
|
override |
Definition at line 60 of file CarriersLocationModel.cxx.
| SGGeod CarriersLocationModel::geodForIndex | ( | int | index | ) | const |
Definition at line 113 of file CarriersLocationModel.cxx.
| int CarriersLocationModel::indexOf | ( | const QString | name | ) | const |
Definition at line 102 of file CarriersLocationModel.cxx.
| QStringList CarriersLocationModel::parkingsForIndex | ( | int | index | ) | const |
Definition at line 135 of file CarriersLocationModel.cxx.
| QString CarriersLocationModel::pennantForIndex | ( | int | index | ) | const |
Definition at line 124 of file CarriersLocationModel.cxx.
|
override |
Definition at line 87 of file CarriersLocationModel.cxx.
|
override |
Definition at line 50 of file CarriersLocationModel.cxx.