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

Method sourceModelRowsInserted

plugins/widgetinspector/widget3dwindowmodel.cpp:128–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void Widget3DWindowModel::sourceModelRowsInserted(const QModelIndex &parent, int first, int last)
129{
130 for (int i = first; i <= last; ++i) {
131 const QModelIndex srcIdx = sourceModel()->index(i, 0, parent);
132 if (srcIdx.data(Widget3DModel::IsWindowRole).toBool()) {
133 const int pos = mNodes.size();
134 beginInsertRows(QModelIndex(), pos, pos);
135 mNodes.push_back(new WindowNode(srcIdx));
136 endInsertRows();
137 }
138 }
139}
140
141void Widget3DWindowModel::sourceModelRowsRemoved()
142{

Callers

nothing calls this directly

Calls 4

QModelIndexClass · 0.70
indexMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected