25 #include <QAbstractTableModel>
26 #include <IceGrid/Admin.h>
31 public QAbstractTableModel
46 int rowCount(
const QModelIndex& parent = QModelIndex())
const override
52 int columnCount(
const QModelIndex& parent = QModelIndex())
const override
58 QVariant
data(
const QModelIndex&
index,
int role = Qt::DisplayRole)
const override
70 if (role == Qt::DisplayRole)
74 switch (
index.column())
81 return QString::fromStdString(
adapterInfo.at(
index.row()).proxy->ice_toString());
95 if (role != Qt::DisplayRole)
100 if (orientation == Qt::Horizontal)
105 return QString(
"ID");
109 return QString(
"Proxy");
124 return Qt::ItemFlags(0);
128 bool setData(IceGrid::AdapterDynamicInfoSeq newInfo)