JSONTreeModel Class Reference

#include <RobotAPI/libraries/widgets/JSONTreeModel.h>

+ Inheritance diagram for JSONTreeModel:

Public Member Functions

int columnCount (const QModelIndex &parent) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const override
 
QModelIndex index (int row, int column, const QModelIndex &parent) const override
 
QModelIndex parent (const QModelIndex &index) const override
 
int rowCount (const QModelIndex &parent) const override
 
void setRoot (nlohmann::json const &root)
 

Detailed Description

Definition at line 9 of file JSONTreeModel.h.

Member Function Documentation

◆ columnCount()

int columnCount ( const QModelIndex &  parent) const
override

Definition at line 97 of file JSONTreeModel.cpp.

◆ data()

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

Definition at line 102 of file JSONTreeModel.cpp.

+ Here is the call graph for this function:

◆ headerData()

QVariant headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
override

Definition at line 152 of file JSONTreeModel.cpp.

◆ index()

QModelIndex index ( int  row,
int  column,
const QModelIndex &  parent 
) const
override

Definition at line 19 of file JSONTreeModel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parent()

QModelIndex parent ( const QModelIndex &  index) const
override

Definition at line 55 of file JSONTreeModel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rowCount()

int rowCount ( const QModelIndex &  parent) const
override

Definition at line 79 of file JSONTreeModel.cpp.

+ Here is the call graph for this function:

◆ setRoot()

void setRoot ( nlohmann::json const &  root)

Definition at line 8 of file JSONTreeModel.cpp.


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