FlightGear next
FGQmlPropertyModel Class Reference

#include <QmlPropertyModel.hxx>

Inherits QAbstractListModel.

Classes

class  PropertyModelPrivate
 

Public Slots

void setRootPath (QString rootPath)
 
void setChildName (QString childName)
 

Signals

void rootPathChanged (QString rootPath)
 
void childNameChanged (QString childName)
 

Public Member Functions

 FGQmlPropertyModel (QObject *parent=nullptr)
 
 ~FGQmlPropertyModel () override
 
QString rootPath () const
 
QString childName () const
 
QHash< int, QByteArray > roleNames () const override
 
QVariant data (const QModelIndex &m, int role) const override
 

Properties

QString rootPath
 
QString childName
 

Detailed Description

Definition at line 23 of file QmlPropertyModel.hxx.

Constructor & Destructor Documentation

◆ FGQmlPropertyModel()

FGQmlPropertyModel::FGQmlPropertyModel ( QObject * parent = nullptr)

◆ ~FGQmlPropertyModel()

FGQmlPropertyModel::~FGQmlPropertyModel ( )
override

Definition at line 178 of file QmlPropertyModel.cxx.

Member Function Documentation

◆ childName()

QString FGQmlPropertyModel::childName ( ) const

Definition at line 188 of file QmlPropertyModel.cxx.

◆ childNameChanged

void FGQmlPropertyModel::childNameChanged ( QString childName)
signal

◆ data()

QVariant FGQmlPropertyModel::data ( const QModelIndex & m,
int role ) const
override

Definition at line 202 of file QmlPropertyModel.cxx.

◆ roleNames()

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

Definition at line 193 of file QmlPropertyModel.cxx.

◆ rootPath()

QString FGQmlPropertyModel::rootPath ( ) const

Definition at line 183 of file QmlPropertyModel.cxx.

◆ rootPathChanged

void FGQmlPropertyModel::rootPathChanged ( QString rootPath)
signal

◆ setChildName

void FGQmlPropertyModel::setChildName ( QString childName)
slot

Definition at line 228 of file QmlPropertyModel.cxx.

◆ setRootPath

void FGQmlPropertyModel::setRootPath ( QString rootPath)
slot

Definition at line 214 of file QmlPropertyModel.cxx.

Property Documentation

◆ childName

QString FGQmlPropertyModel::childName
readwrite

Definition at line 28 of file QmlPropertyModel.hxx.

◆ rootPath

QString FGQmlPropertyModel::rootPath
readwrite

Definition at line 27 of file QmlPropertyModel.hxx.


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