26 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
27 QVariant data(
const QModelIndex &index,
int role)
const;
28 QHash<int, QByteArray> roleNames()
const;
30 void setExternalSource(
const QList<QObject*>* newData);
31 void setSource(
const QList<QObject*>& newData);
32 void addSource(QObject *data);
34 void clear(
bool fast =
false);
36 bool external()
const;
39 void setExternal(
bool external);
41 bool _external =
false;
42 QList<QObject*> _data;
43 const QList<QObject*> *_externalData =
nullptr;