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

Method itemData

plugins/widgetinspector/widget3dmodel.cpp:316–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316QMap<int, QVariant> Widget3DModel::itemData(const QModelIndex &index) const
317{
318 QMap<int, QVariant> data = QSortFilterProxyModel::itemData(index);
319 if (index.column() == 0) {
320 auto w = widgetForIndex(index);
321 Q_ASSERT(w);
322
323 // see comment in data()
324 data[ObjectModel::ObjectIdRole] = this->data(index, ObjectModel::ObjectIdRole);
325 data[IdRole] = w->id();
326 data[TextureRole] = w->texture();
327 data[BackTextureRole] = w->backTexture();
328 data[IsWindowRole] = w->isWindow();
329 data[GeometryRole] = w->geometry();
330 data[MetaDataRole] = w->metaData();
331 data[DepthRole] = w->depth();
332 }
333 return data;
334}
335
336Widget3DWidget *Widget3DModel::widgetForObject(QObject *obj, const QModelIndex &idx,
337 bool createWhenMissing) const

Callers

nothing calls this directly

Calls 9

dataMethod · 0.95
columnMethod · 0.80
textureMethod · 0.80
backTextureMethod · 0.80
isWindowMethod · 0.80
idMethod · 0.45
geometryMethod · 0.45
metaDataMethod · 0.45
depthMethod · 0.45

Tested by

no test coverage detected