Extension of ProjectTreeModel for use in ProjectCalibrationEditor. More...
#include <calibrationeditor.h>
Public Member Functions | |
AdjustedTreeModel (QObject *parent=0) | |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
Extension of ProjectTreeModel for use in ProjectCalibrationEditor.
AdjustedTreeModel::AdjustedTreeModel | ( | QObject * | parent = 0 |
) | [inline] |
: ProjectTreeModel(parent){}
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; }