KXQTS::TreeModel Class Reference

TreeItem is a generic QAbstractItemModel tailored for representing hierarchial data. More...

#include <TreeModel.h>

List of all members.

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
TreeItemroot () 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)


Detailed Description

TreeItem is a generic QAbstractItemModel tailored for representing hierarchial data.

TreeModel is an item model in Qt's model/view framework. Its data consists of TreeItem instances.

See also:
TreeItem
Author:
Frans Englich <frans.englich@telia.com>

Definition at line 38 of file TreeModel.h.


Member Function Documentation

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:


The documentation for this class was generated from the following files:
Generated on Thu Feb 8 14:54:31 2007 for Patternist by  doxygen 1.5.1