FlightGear next
LegsModel Class Reference

#include <FlightPlanController.hxx>

Inherits QAbstractListModel.

Signals

void numLegsChanged ()
 

Public Member Functions

void setFlightPlan (flightgear::FlightPlanRef f)
 
int rowCount (const QModelIndex &parent) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
QHash< int, QByteArray > roleNames () const override
 
void waypointsChanged ()
 
int numLegs () const
 

Properties

int numLegs
 

Detailed Description

Definition at line 17 of file FlightPlanController.hxx.

Member Function Documentation

◆ data()

QVariant LegsModel::data ( const QModelIndex & index,
int role ) const
override

Definition at line 50 of file FlightPlanController.cxx.

◆ numLegs()

int LegsModel::numLegs ( ) const

Definition at line 153 of file FlightPlanController.cxx.

◆ numLegsChanged

void LegsModel::numLegsChanged ( )
signal

◆ roleNames()

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

Definition at line 135 of file FlightPlanController.cxx.

◆ rowCount()

int LegsModel::rowCount ( const QModelIndex & parent) const
override

Definition at line 44 of file FlightPlanController.cxx.

◆ setFlightPlan()

void LegsModel::setFlightPlan ( flightgear::FlightPlanRef f)

Definition at line 36 of file FlightPlanController.cxx.

◆ waypointsChanged()

void LegsModel::waypointsChanged ( )

Definition at line 128 of file FlightPlanController.cxx.

Property Documentation

◆ numLegs

int LegsModel::numLegs
read

Definition at line 21 of file FlightPlanController.hxx.


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