MCPcopy Create free account
hub / github.com/KDAB/GammaRay / sourceIsQQmlListModel

Function sourceIsQQmlListModel

plugins/modelinspector/modelcellmodel.cpp:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27static bool sourceIsQQmlListModel(const QAbstractItemModel *model)
28{
29 Q_ASSERT(model);
30 while (auto proxy = qobject_cast<const QAbstractProxyModel *>(model))
31 model = proxy->sourceModel();
32 return model->inherits("QQmlListModel");
33}
34
35void ModelCellModel::setModelIndex(const QModelIndex &idx)
36{

Callers 1

rolesForModelMethod · 0.85

Calls 1

inheritsMethod · 0.80

Tested by

no test coverage detected