17#ifndef __gui_dialog_list_h__
18#define __gui_dialog_list_h__
38 qDeleteAll (childItems);
41 childItems.append (
child);
44 return childItems.value (
row);
47 return childItems.count();
50 return itemData.count();
52 QVariant
data (
int column)
const {
53 return itemData.value (column);
57 return parentItem->childItems.indexOf (
const_cast<TreeItem*
> (
this));
65 QList<TreeItem*> childItems;
66 QList<QVariant> itemData;
80 QVariant
data (
const QModelIndex&
index,
int role)
const;
82 QVariant
headerData (
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
83 QModelIndex
index (
int row,
int column,
const QModelIndex&
parent = QModelIndex())
const;
TreeItem * child(int row)
void appendChild(TreeItem *child)
TreeItem(const std::string &key, const std::string &value, TreeItem *parent=0)
QVariant data(int column) const
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Qt::ItemFlags flags(const QModelIndex &index) const
int columnCount(const QModelIndex &parent=QModelIndex()) const
TreeModel(QObject *parent)
QVariant data(const QModelIndex &index, int role) const
int rowCount(const QModelIndex &parent=QModelIndex()) const
QModelIndex parent(const QModelIndex &index) const
VectorType::Scalar value(const VectorType &coefs, typename VectorType::Scalar cos_elevation, typename VectorType::Scalar cos_azimuth, typename VectorType::Scalar sin_azimuth, int lmax)
QString qstr(const std::string &s)