Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQmlTreeRow Class Reference

#include <qqmltreerow_p.h>

Collaboration diagram for QQmlTreeRow:

Public Member Functions

 QQmlTreeRow (QQmlTreeRow *parentItem=nullptr)
 QQmlTreeRow (const QVariant &data, QQmlTreeRow *parentItem=nullptr)
 QQmlTreeRow (const QVariantMap &data, QQmlTreeRow *parentItem=nullptr)
QQmlTreeRowparent () const
void setParent (QQmlTreeRow *parent)
const QQmlTreeRowgetRow (int i) const
void addChild (QQmlTreeRow *child)
size_t rowCount () const
int subTreeSize () const
QVariantMap data () const
QVariant data (const QString &key) const
const std::vector< std::unique_ptr< QQmlTreeRow > > & children () const
void removeChild (std::vector< std::unique_ptr< QQmlTreeRow > >::const_iterator &child)
void removeChildAt (int i)
void setData (const QVariant &data)
void setData (const QVariantMap &data)
void setField (const QString &key, const QVariant &value)
QVariant toVariant () const

Detailed Description

Definition at line 30 of file qqmltreerow_p.h.

Constructor & Destructor Documentation

◆ QQmlTreeRow() [1/3]

QQmlTreeRow::QQmlTreeRow ( QQmlTreeRow * parentItem = nullptr)
explicit

Definition at line 14 of file qqmltreerow.cpp.

◆ QQmlTreeRow() [2/3]

QQmlTreeRow::QQmlTreeRow ( const QVariant & data,
QQmlTreeRow * parentItem = nullptr )
explicit

Definition at line 20 of file qqmltreerow.cpp.

◆ QQmlTreeRow() [3/3]

QQmlTreeRow::QQmlTreeRow ( const QVariantMap & data,
QQmlTreeRow * parentItem = nullptr )
explicit

Definition at line 27 of file qqmltreerow.cpp.

Member Function Documentation

◆ addChild()

void QQmlTreeRow::addChild ( QQmlTreeRow * child)

Definition at line 34 of file qqmltreerow.cpp.

◆ children()

const std::vector< std::unique_ptr< QQmlTreeRow > > & QQmlTreeRow::children ( ) const
inline

Definition at line 47 of file qqmltreerow_p.h.

◆ data() [1/2]

QVariantMap QQmlTreeRow::data ( ) const
inline

Definition at line 45 of file qqmltreerow_p.h.

◆ data() [2/2]

QVariant QQmlTreeRow::data ( const QString & key) const
inline

Definition at line 46 of file qqmltreerow_p.h.

◆ getRow()

const QQmlTreeRow * QQmlTreeRow::getRow ( int i) const
inline

Definition at line 40 of file qqmltreerow_p.h.

◆ parent()

QQmlTreeRow * QQmlTreeRow::parent ( ) const
inline

Definition at line 37 of file qqmltreerow_p.h.

◆ removeChild()

void QQmlTreeRow::removeChild ( std::vector< std::unique_ptr< QQmlTreeRow > >::const_iterator & child)

Definition at line 56 of file qqmltreerow.cpp.

◆ removeChildAt()

void QQmlTreeRow::removeChildAt ( int i)

Definition at line 61 of file qqmltreerow.cpp.

◆ rowCount()

size_t QQmlTreeRow::rowCount ( ) const
inline

Definition at line 42 of file qqmltreerow_p.h.

◆ setData() [1/2]

void QQmlTreeRow::setData ( const QVariant & data)

Definition at line 66 of file qqmltreerow.cpp.

◆ setData() [2/2]

void QQmlTreeRow::setData ( const QVariantMap & data)

Definition at line 73 of file qqmltreerow.cpp.

◆ setField()

void QQmlTreeRow::setField ( const QString & key,
const QVariant & value )

Definition at line 79 of file qqmltreerow.cpp.

◆ setParent()

void QQmlTreeRow::setParent ( QQmlTreeRow * parent)
inline

Definition at line 38 of file qqmltreerow_p.h.

◆ subTreeSize()

int QQmlTreeRow::subTreeSize ( ) const

Definition at line 100 of file qqmltreerow.cpp.

◆ toVariant()

QVariant QQmlTreeRow::toVariant ( ) const

Definition at line 85 of file qqmltreerow.cpp.


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