#include <AircraftItemModel.hxx>
Inherits QAbstractListModel.
Definition at line 66 of file AircraftItemModel.hxx.
◆ AircraftItemModel()
AircraftItemModel::AircraftItemModel |
( |
QObject * | pr | ) |
|
◆ ~AircraftItemModel()
AircraftItemModel::~AircraftItemModel |
( |
| ) |
|
|
override |
◆ aircraftInstallCompleted
void AircraftItemModel::aircraftInstallCompleted |
( |
QModelIndex | index | ) |
|
|
signal |
◆ aircraftInstallFailed
void AircraftItemModel::aircraftInstallFailed |
( |
QModelIndex | index, |
|
|
QString | errorMessage ) |
|
signal |
◆ contentsChanged
void AircraftItemModel::contentsChanged |
( |
| ) |
|
|
signal |
◆ data()
QVariant AircraftItemModel::data |
( |
const QModelIndex & | index, |
|
|
int | role ) const |
|
override |
◆ indexOfAircraftURI()
QModelIndex AircraftItemModel::indexOfAircraftURI |
( |
QUrl | uri | ) |
const |
given a -set.xml path, return the corresponding model index, if one exists.
Definition at line 491 of file AircraftItemModel.cxx.
◆ installedAircraftCount()
int AircraftItemModel::installedAircraftCount |
( |
| ) |
const |
◆ installedAircraftCountChanged
void AircraftItemModel::installedAircraftCountChanged |
( |
| ) |
|
|
signal |
◆ isIndexRunnable()
bool AircraftItemModel::isIndexRunnable |
( |
const QModelIndex & | index | ) |
const |
return if a given aircraft is ready to be run, or not.
Aircraft which are not installed, or are downloading, are not runnable.
Definition at line 677 of file AircraftItemModel.cxx.
◆ nameForAircraftURI()
QString AircraftItemModel::nameForAircraftURI |
( |
QUrl | uri | ) |
const |
Retrieve the display name for an aircraft specified by URI, without changing the current variant state.
Definition at line 574 of file AircraftItemModel.cxx.
◆ roleNames()
QHash< int, QByteArray > AircraftItemModel::roleNames |
( |
| ) |
const |
|
override |
◆ rowCount()
int AircraftItemModel::rowCount |
( |
const QModelIndex & | parent | ) |
const |
|
override |
◆ selectVariantForAircraftURI()
void AircraftItemModel::selectVariantForAircraftURI |
( |
QUrl | uri | ) |
|
ensure the appropriate variant index is active in the model, for the corresponding aircraft URI
Definition at line 524 of file AircraftItemModel.cxx.
◆ setData()
bool AircraftItemModel::setData |
( |
const QModelIndex & | index, |
|
|
const QVariant & | value, |
|
|
int | role ) |
|
override |
◆ setPackageRoot()
void AircraftItemModel::setPackageRoot |
( |
const simgear::pkg::RootRef & | root | ) |
|
◆ PackageDelegate
◆ installedAircraftCount
int AircraftItemModel::installedAircraftCount |
|
read |
The documentation for this class was generated from the following files: