29 #ifndef XML_RPC_MODEL_H 30 #define XML_RPC_MODEL_H 32 #include <QAbstractItemModel> 51 QModelIndex
index(
int row,
int column,
const QModelIndex &
parent = QModelIndex())
const;
52 QModelIndex
parent(
const QModelIndex & index)
const;
54 QVariant
data(
const QModelIndex & index,
int role)
const;
55 Qt::ItemFlags
flags(
const QModelIndex & index)
const;
56 QVariant
headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
59 int rowCount(
const QModelIndex & parent = QModelIndex())
const;
60 int columnCount(
const QModelIndex & parent = QModelIndex())
const;
62 bool setData(
const QModelIndex & index,
const QVariant & value,
int role = Qt::EditRole);
unsigned int _maxDisplayLength
A wrapper around the XmlRpcValue including a parent pointer and convenience functions for the qt mode...
XmlRpcModel(XmlRpc::XmlRpcValue *rootData, const std::string &rootPath, ros::NodeHandle *nh)
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
QModelIndex parent(const QModelIndex &index) const
int rowCount(const QModelIndex &parent=QModelIndex()) const
should return the number of children for a parent item
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
int columnCount(const QModelIndex &parent=QModelIndex()) const
Qt::ItemFlags flags(const QModelIndex &index) const
void setMaxDisplayLength(unsigned int l)
QAbstractItemModel for XmlRpcValues.
QVariant data(const QModelIndex &index, int role) const
unsigned int getMaxDisplayLength() const