Public Member Functions

AdjustedTreeModel Class Reference

Extension of ProjectTreeModel for use in ProjectCalibrationEditor. More...

#include <calibrationeditor.h>

Inheritance diagram for AdjustedTreeModel:
Inheritance graph
[legend]
Collaboration diagram for AdjustedTreeModel:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AdjustedTreeModel (QObject *parent=0)
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
virtual Qt::ItemFlags flags (const QModelIndex &index) const

Detailed Description

Extension of ProjectTreeModel for use in ProjectCalibrationEditor.


Constructor & Destructor Documentation

AdjustedTreeModel::AdjustedTreeModel ( QObject parent = 0  )  [inline]

: ProjectTreeModel(parent){}


Member Function Documentation

virtual int AdjustedTreeModel::columnCount ( const QModelIndex parent = QModelIndex()  )  const [inline, virtual]

Reimplemented from ProjectTreeModel.

                                                                             {
        return 1;
    }

virtual Qt::ItemFlags AdjustedTreeModel::flags ( const QModelIndex index  )  const [inline, virtual]

Reimplemented from ProjectTreeModel.

                                                                {
        Qt::ItemFlags flags = Qt::ItemIsEnabled;
        if (index.data(ProjectTreeModel::TreeItemPointer).value<TreeItem*>()->data(TreeItem::TreeItemColumnName).toString() == QString("sens_chan_nr"))
            flags = flags | Qt::ItemIsSelectable;
        return flags;
    }


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