![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qqmltreerow_p.h>
Public Member Functions | |
| QQmlTreeRow (QQmlTreeRow *parentItem=nullptr) | |
| QQmlTreeRow (const QVariant &data, QQmlTreeRow *parentItem=nullptr) | |
| QQmlTreeRow (const QVariantMap &data, QQmlTreeRow *parentItem=nullptr) | |
| QQmlTreeRow * | parent () const |
| void | setParent (QQmlTreeRow *parent) |
| const QQmlTreeRow * | getRow (int i) const |
| void | addChild (QQmlTreeRow *child) |
| void | insertChild (int index, std::unique_ptr< 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) |
| std::unique_ptr< QQmlTreeRow > | takeChild (int i) |
| void | setData (const QVariant &data) |
| void | setData (const QVariantMap &data) |
| void | setField (const QString &key, const QVariant &value) |
| QVariant | toVariant () const |
Definition at line 33 of file qqmltreerow_p.h.
|
explicit |
Definition at line 13 of file qqmltreerow.cpp.
|
explicit |
Definition at line 19 of file qqmltreerow.cpp.
|
explicit |
Definition at line 26 of file qqmltreerow.cpp.
| void QQmlTreeRow::addChild | ( | QQmlTreeRow * | child | ) |
Definition at line 32 of file qqmltreerow.cpp.
References setParent().
|
inline |
Definition at line 51 of file qqmltreerow_p.h.
|
inline |
Definition at line 49 of file qqmltreerow_p.h.
Definition at line 50 of file qqmltreerow_p.h.
|
inline |
Definition at line 43 of file qqmltreerow_p.h.
| void QQmlTreeRow::insertChild | ( | int | index, |
| std::unique_ptr< QQmlTreeRow > | child ) |
Definition at line 38 of file qqmltreerow.cpp.
|
inline |
Definition at line 40 of file qqmltreerow_p.h.
| void QQmlTreeRow::removeChild | ( | std::vector< std::unique_ptr< QQmlTreeRow > >::const_iterator & | child | ) |
Definition at line 60 of file qqmltreerow.cpp.
| void QQmlTreeRow::removeChildAt | ( | int | i | ) |
Definition at line 65 of file qqmltreerow.cpp.
|
inline |
Definition at line 46 of file qqmltreerow_p.h.
Definition at line 78 of file qqmltreerow.cpp.
| void QQmlTreeRow::setData | ( | const QVariantMap & | data | ) |
Definition at line 85 of file qqmltreerow.cpp.
Definition at line 91 of file qqmltreerow.cpp.
|
inline |
Definition at line 41 of file qqmltreerow_p.h.
Referenced by addChild().
| int QQmlTreeRow::subTreeSize | ( | ) | const |
Definition at line 112 of file qqmltreerow.cpp.
| std::unique_ptr< QQmlTreeRow > QQmlTreeRow::takeChild | ( | int | i | ) |
Definition at line 70 of file qqmltreerow.cpp.
| QVariant QQmlTreeRow::toVariant | ( | ) | const |
Definition at line 97 of file qqmltreerow.cpp.