#include <TreeModel.h>
Public Member Functions | |
| virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| virtual QVariant | data (const QModelIndex &index, int role) const |
| virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
| virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| virtual QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| virtual QModelIndex | parent (const QModelIndex &index) const |
| TreeItem * | root () const |
| virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| void | setRoot (TreeItem *root) |
| TreeModel (const QStringList columnData, QObject *parent) | |
| virtual | ~TreeModel () |
Protected Slots | |
| void | childChanged (TreeItem *child) |
TreeModel is an item model in Qt's model/view framework. Its data consists of TreeItem instances.
Definition at line 38 of file TreeModel.h.
| void TreeModel::setRoot | ( | TreeItem * | root | ) |
Sets root to the new root, and deletes the old.
Definition at line 141 of file TreeModel.cpp.
References childChanged().
Referenced by KXQTS::TestResultView::displayTestResult().
Here is the caller graph for this function:

1.5.1