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 10 of file JSONTreeModel.h.

Member Function Documentation

◆ columnCount()

int columnCount ( const QModelIndex & parent) const
override

Definition at line 101 of file JSONTreeModel.cpp.

+ Here is the call graph for this function:

◆ data()

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

Definition at line 107 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 158 of file JSONTreeModel.cpp.

◆ index()

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

Definition at line 21 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 57 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 82 of file JSONTreeModel.cpp.

+ Here is the call graph for this function:

◆ setRoot()

void setRoot ( nlohmann::json const & root)

Definition at line 9 of file JSONTreeModel.cpp.


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