FlightGear next
PropertyItemModel Class Reference

#include <PropertyItemModel.hxx>

Inherits QAbstractListModel, and SGPropertyChangeListener.

Public Slots

void setRootPath (QString rootPath)
 
void setChildNameFilter (QString childNameFilter)
 
void setRoot (FGQmlPropertyNode *root)
 

Signals

void rootChanged ()
 
void childNameFilterChanged (QString childNameFilter)
 
void mappingsChanged ()
 

Public Member Functions

 PropertyItemModel ()
 
int rowCount (const QModelIndex &parent) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
QHash< int, QByteArray > roleNames () const override
 
QString rootPath () const
 
QString childNameFilter () const
 
FGQmlPropertyNoderoot () const
 

Protected Member Functions

void valueChanged (SGPropertyNode *node) override
 
void childAdded (SGPropertyNode *parent, SGPropertyNode *child) override
 
void childRemoved (SGPropertyNode *parent, SGPropertyNode *child) override
 

Properties

QString rootPath
 
FGQmlPropertyNoderoot
 
QString childNameFilter
 
QQmlListProperty< PropertyItemModelRoleMappingmappings
 

Detailed Description

Definition at line 18 of file PropertyItemModel.hxx.

Constructor & Destructor Documentation

◆ PropertyItemModel()

PropertyItemModel::PropertyItemModel ( )

Definition at line 55 of file PropertyItemModel.cxx.

Member Function Documentation

◆ childAdded()

void PropertyItemModel::childAdded ( SGPropertyNode * parent,
SGPropertyNode * child )
overrideprotected

Definition at line 149 of file PropertyItemModel.cxx.

◆ childNameFilter()

QString PropertyItemModel::childNameFilter ( ) const

Definition at line 102 of file PropertyItemModel.cxx.

◆ childNameFilterChanged

void PropertyItemModel::childNameFilterChanged ( QString childNameFilter)
signal

◆ childRemoved()

void PropertyItemModel::childRemoved ( SGPropertyNode * parent,
SGPropertyNode * child )
overrideprotected

Definition at line 161 of file PropertyItemModel.cxx.

◆ data()

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

Definition at line 65 of file PropertyItemModel.cxx.

◆ mappingsChanged

void PropertyItemModel::mappingsChanged ( )
signal

◆ roleNames()

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

Definition at line 87 of file PropertyItemModel.cxx.

◆ root()

FGQmlPropertyNode * PropertyItemModel::root ( ) const

Definition at line 107 of file PropertyItemModel.cxx.

◆ rootChanged

void PropertyItemModel::rootChanged ( )
signal

◆ rootPath()

QString PropertyItemModel::rootPath ( ) const

Definition at line 97 of file PropertyItemModel.cxx.

◆ rowCount()

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

Definition at line 60 of file PropertyItemModel.cxx.

◆ setChildNameFilter

void PropertyItemModel::setChildNameFilter ( QString childNameFilter)
slot

Definition at line 122 of file PropertyItemModel.cxx.

◆ setRoot

void PropertyItemModel::setRoot ( FGQmlPropertyNode * root)
slot

Definition at line 135 of file PropertyItemModel.cxx.

◆ setRootPath

void PropertyItemModel::setRootPath ( QString rootPath)
slot

Definition at line 114 of file PropertyItemModel.cxx.

◆ valueChanged()

void PropertyItemModel::valueChanged ( SGPropertyNode * node)
overrideprotected

Definition at line 144 of file PropertyItemModel.cxx.

Property Documentation

◆ childNameFilter

QString PropertyItemModel::childNameFilter
readwrite

Definition at line 27 of file PropertyItemModel.hxx.

◆ mappings

QQmlListProperty< PropertyItemModelRoleMapping > PropertyItemModel::mappings
read

Definition at line 28 of file PropertyItemModel.hxx.

◆ root

FGQmlPropertyNode* PropertyItemModel::root
readwrite

Definition at line 25 of file PropertyItemModel.hxx.

◆ rootPath

QString PropertyItemModel::rootPath
readwrite

Definition at line 23 of file PropertyItemModel.hxx.


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