18#include <QtQmlModels/private/qtqmlmodelsglobal_p.h>
20#include <QtCore/qmap.h>
21#include <QtCore/qvariant.h>
30using namespace Qt::StringLiterals;
45 void insertChild(
int index, std::unique_ptr<QQmlTreeRow> child);
52 void removeChild(std::vector<std::unique_ptr<QQmlTreeRow>>::const_iterator &child);
55 void setData(
const QVariant &data);
56 void setData(
const QVariantMap &data);
57 void setField(
const QString &key,
const QVariant &value);
60 void unpackVariantMap(
const QVariantMap &dataMap);
63 std::vector<std::unique_ptr<QQmlTreeRow>> m_children;
void addChild(QQmlTreeRow *child)
QVariant toVariant() const
std::unique_ptr< QQmlTreeRow > takeChild(int i)
const std::vector< std::unique_ptr< QQmlTreeRow > > & children() const
QQmlTreeRow * parent() const
void setData(const QVariant &data)
void setParent(QQmlTreeRow *parent)
void setField(const QString &key, const QVariant &value)
void removeChild(std::vector< std::unique_ptr< QQmlTreeRow > >::const_iterator &child)
QQmlTreeRow(QQmlTreeRow *parentItem=nullptr)
QQmlTreeRow(const QVariant &data, QQmlTreeRow *parentItem=nullptr)
const QQmlTreeRow * getRow(int i) const
void insertChild(int index, std::unique_ptr< QQmlTreeRow > child)
QVariant data(const QString &key) const
void removeChildAt(int i)
Combined button and popup list for selecting options.
QT_REQUIRE_CONFIG(animation)
QT_REQUIRE_CONFIG(qml_tree_model)
static constexpr QLatin1StringView ROWS_PROPERTY_NAME