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

Method filterAcceptsRow

plugins/widgetinspector/widget3dmodel.cpp:364–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364bool Widget3DModel::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
365{
366 const QModelIndex sourceIdx = sourceModel()->index(source_row, 0, source_parent);
367 QObject *sourceObj = sourceModel()->data(sourceIdx, ObjectModel::ObjectRole).value<QObject *>();
368 return qobject_cast<QWidget *>(sourceObj);
369}
370
371void Widget3DModel::onWidgetChanged(const QVector<int> &roles)
372{

Callers

nothing calls this directly

Calls 2

indexMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected