SettingsTreeModel Class Reference

Public Member Functions

 SettingsTreeModel (std::string schema, QObject *parent=0)
 
 ~SettingsTreeModel ()
 
QVariant data (const QModelIndex &index, int role) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const override
 
QModelIndex parent (const QModelIndex &index) const override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
 
void updateModel ()
 

Constructor & Destructor Documentation

◆ SettingsTreeModel()

SettingsTreeModel::SettingsTreeModel ( std::string  schema,
QObject *  parent = 0 
)

◆ ~SettingsTreeModel()

SettingsTreeModel::~SettingsTreeModel ( )

Member Function Documentation

◆ columnCount()

int SettingsTreeModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
override

◆ data()

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

◆ flags()

Qt::ItemFlags SettingsTreeModel::flags ( const QModelIndex &  index) const
override

◆ headerData()

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

◆ index()

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

◆ parent()

QModelIndex SettingsTreeModel::parent ( const QModelIndex &  index) const
override

◆ rowCount()

int SettingsTreeModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
override

◆ setData()

bool SettingsTreeModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
override

◆ updateModel()

void SettingsTreeModel::updateModel ( )

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