KSeExpr 6.0.0.0
Public Member Functions | Private Attributes | List of all members
ExprTreeModel Class Reference
Inheritance diagram for ExprTreeModel:

Public Member Functions

 ExprTreeModel ()
 
 ~ExprTreeModel () override
 
void update ()
 
void clear ()
 
void addPath (const char *label, const char *path)
 
QModelIndex parent (const QModelIndex &index) const override
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const override
 
int columnCount (const QModelIndex &) const override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
QModelIndex find (QString path)
 

Private Attributes

ExprTreeItemroot
 

Detailed Description

Definition at line 143 of file ExprBrowser.cpp.

Constructor & Destructor Documentation

◆ ExprTreeModel()

ExprTreeModel::ExprTreeModel ( )
inline

Definition at line 148 of file ExprBrowser.cpp.

◆ ~ExprTreeModel()

ExprTreeModel::~ExprTreeModel ( )
inlineoverride

Definition at line 153 of file ExprBrowser.cpp.

References root.

Member Function Documentation

◆ addPath()

void ExprTreeModel::addPath ( const char *  label,
const char *  path 
)
inline

Definition at line 171 of file ExprBrowser.cpp.

References ExprTreeItem::addChild(), and root.

Referenced by ExprBrowser::addPath().

◆ clear()

void ExprTreeModel::clear ( )
inline

Definition at line 164 of file ExprBrowser.cpp.

References ExprTreeItem::clear(), and root.

Referenced by ExprBrowser::clear().

◆ columnCount()

int ExprTreeModel::columnCount ( const QModelIndex &  ) const
inlineoverride

Definition at line 200 of file ExprBrowser.cpp.

◆ data()

QVariant ExprTreeModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
inlineoverride

Definition at line 218 of file ExprBrowser.cpp.

References index().

◆ find()

QModelIndex ExprTreeModel::find ( QString  path)
inline

◆ index()

QModelIndex ExprTreeModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
inlineoverride

Definition at line 188 of file ExprBrowser.cpp.

References ExprTreeItem::getChild(), parent(), and root.

Referenced by data(), and parent().

◆ parent()

QModelIndex ExprTreeModel::parent ( const QModelIndex &  index) const
inlineoverride

Definition at line 176 of file ExprBrowser.cpp.

References index(), ExprTreeItem::parent, root, and ExprTreeItem::row.

Referenced by index(), and rowCount().

◆ rowCount()

int ExprTreeModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
inlineoverride

Definition at line 205 of file ExprBrowser.cpp.

References ExprTreeItem::getChildCount(), parent(), and root.

◆ update()

void ExprTreeModel::update ( )
inline

Definition at line 158 of file ExprBrowser.cpp.

Referenced by ExprBrowser::update().

Member Data Documentation

◆ root

ExprTreeItem* ExprTreeModel::root
private

Definition at line 145 of file ExprBrowser.cpp.

Referenced by addPath(), clear(), find(), index(), parent(), rowCount(), and ~ExprTreeModel().


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