FlightGear next
FGQmlPropertyNode Class Reference

#include <FGQmlPropertyNode.hxx>

Inherits QObject, and SGPropertyChangeListener.

Public Slots

void setPath (QString path)
 

Signals

void valueChangedNotify (QVariant value)
 
void pathChanged (QString path)
 
void parentPropChanged (FGQmlPropertyNode *parentProp)
 
void childPropsChanged ()
 

Public Member Functions

 FGQmlPropertyNode (QObject *parent=nullptr)
 
Q_INVOKABLE bool set (QVariant newValue)
 
QVariant value () const
 
QString path () const
 
FGQmlPropertyNodeparentProp () const
 
void setNode (SGPropertyNode_ptr node)
 
SGPropertyNode_ptr node () const
 
QQmlListProperty< FGQmlPropertyNodechildProps ()
 
int childCount () const
 
FGQmlPropertyNodechildAt (int index) const
 

Static Public Member Functions

static QVariant propertyValueAsVariant (SGPropertyNode *p)
 

Protected Member Functions

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

Properties

QVariant value
 
QString path
 
FGQmlPropertyNodeparentProp
 
QQmlListProperty< FGQmlPropertyNodechildProps
 

Detailed Description

Definition at line 34 of file FGQmlPropertyNode.hxx.

Constructor & Destructor Documentation

◆ FGQmlPropertyNode()

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

Definition at line 35 of file FGQmlPropertyNode.cxx.

Member Function Documentation

◆ childAdded()

void FGQmlPropertyNode::childAdded ( SGPropertyNode * pr,
SGPropertyNode * child )
overrideprotected

Definition at line 164 of file FGQmlPropertyNode.cxx.

◆ childAt()

FGQmlPropertyNode * FGQmlPropertyNode::childAt ( int index) const

Definition at line 192 of file FGQmlPropertyNode.cxx.

◆ childCount()

int FGQmlPropertyNode::childCount ( ) const

Definition at line 185 of file FGQmlPropertyNode.cxx.

◆ childProps()

QQmlListProperty< FGQmlPropertyNode > FGQmlPropertyNode::childProps ( )
inline

Definition at line 62 of file FGQmlPropertyNode.hxx.

◆ childPropsChanged

void FGQmlPropertyNode::childPropsChanged ( )
signal

◆ childRemoved()

void FGQmlPropertyNode::childRemoved ( SGPropertyNode * pr,
SGPropertyNode * child )
overrideprotected

Definition at line 171 of file FGQmlPropertyNode.cxx.

◆ node()

SGPropertyNode_ptr FGQmlPropertyNode::node ( ) const

Definition at line 121 of file FGQmlPropertyNode.cxx.

◆ parentProp()

FGQmlPropertyNode * FGQmlPropertyNode::parentProp ( ) const

Definition at line 90 of file FGQmlPropertyNode.cxx.

◆ parentPropChanged

void FGQmlPropertyNode::parentPropChanged ( FGQmlPropertyNode * parentProp)
signal

◆ path()

QString FGQmlPropertyNode::path ( ) const

Definition at line 82 of file FGQmlPropertyNode.cxx.

◆ pathChanged

void FGQmlPropertyNode::pathChanged ( QString path)
signal

◆ propertyValueAsVariant()

QVariant FGQmlPropertyNode::propertyValueAsVariant ( SGPropertyNode * p)
static

Definition at line 126 of file FGQmlPropertyNode.cxx.

◆ set()

bool FGQmlPropertyNode::set ( QVariant newValue)

Definition at line 40 of file FGQmlPropertyNode.cxx.

◆ setNode()

void FGQmlPropertyNode::setNode ( SGPropertyNode_ptr node)

Definition at line 100 of file FGQmlPropertyNode.cxx.

◆ setPath

void FGQmlPropertyNode::setPath ( QString path)
slot

Definition at line 178 of file FGQmlPropertyNode.cxx.

◆ value()

QVariant FGQmlPropertyNode::value ( ) const

Definition at line 77 of file FGQmlPropertyNode.cxx.

◆ valueChanged()

void FGQmlPropertyNode::valueChanged ( SGPropertyNode * node)
overrideprotected

Definition at line 156 of file FGQmlPropertyNode.cxx.

◆ valueChangedNotify

void FGQmlPropertyNode::valueChangedNotify ( QVariant value)
signal

Property Documentation

◆ childProps

QQmlListProperty<FGQmlPropertyNode> FGQmlPropertyNode::childProps
read

Definition at line 45 of file FGQmlPropertyNode.hxx.

◆ parentProp

FGQmlPropertyNode* FGQmlPropertyNode::parentProp
read

Definition at line 43 of file FGQmlPropertyNode.hxx.

◆ path

QString FGQmlPropertyNode::path
readwrite

Definition at line 42 of file FGQmlPropertyNode.hxx.

◆ value

QVariant FGQmlPropertyNode::value
read

Definition at line 41 of file FGQmlPropertyNode.hxx.


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