FlightGear next
CarriersLocationModel Class Reference

#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
 

Detailed Description

Definition at line 12 of file CarriersLocationModel.hxx.

Member Enumeration Documentation

◆ Roles

Enumerator
GeodRole 
GuidRole 
IdentRole 
NameRole 
IconRole 
TypeRole 
NavFrequencyRole 
DescriptionRole 

Definition at line 27 of file CarriersLocationModel.hxx.

Constructor & Destructor Documentation

◆ CarriersLocationModel()

CarriersLocationModel::CarriersLocationModel ( QObject * parent = nullptr)
explicit

Definition at line 10 of file CarriersLocationModel.cxx.

Member Function Documentation

◆ data()

QVariant CarriersLocationModel::data ( const QModelIndex & index,
int role = Qt::DisplayRole ) const
override

Definition at line 60 of file CarriersLocationModel.cxx.

◆ geodForIndex()

SGGeod CarriersLocationModel::geodForIndex ( int index) const

Definition at line 113 of file CarriersLocationModel.cxx.

◆ indexOf()

int CarriersLocationModel::indexOf ( const QString name) const

Definition at line 102 of file CarriersLocationModel.cxx.

◆ parkingsForIndex()

QStringList CarriersLocationModel::parkingsForIndex ( int index) const

Definition at line 135 of file CarriersLocationModel.cxx.

◆ pennantForIndex()

QString CarriersLocationModel::pennantForIndex ( int index) const

Definition at line 124 of file CarriersLocationModel.cxx.

◆ roleNames()

QHash< int, QByteArray > CarriersLocationModel::roleNames ( ) const
override

Definition at line 87 of file CarriersLocationModel.cxx.

◆ rowCount()

int CarriersLocationModel::rowCount ( const QModelIndex & parent = QModelIndex()) const
override

Definition at line 50 of file CarriersLocationModel.cxx.


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