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

Method index

core/tools/objectinspector/bindingmodel.cpp:216–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216QModelIndex GammaRay::BindingModel::index(int row, int column, const QModelIndex &parent) const
217{
218 if (!m_bindings || !hasIndex(row, column, parent)) {
219 return {};
220 }
221 QModelIndex index;
222 if (parent.isValid()) {
223 index = createIndex(row, column, static_cast<BindingNode *>(parent.internalPointer())->dependencies()[row].get());
224 } else {
225 index = createIndex(row, column, (*m_bindings)[row].get());
226 }
227 return index;
228}
229
230QModelIndex BindingModel::findEquivalent(const std::vector<std::unique_ptr<BindingNode>> &container, BindingNode *bindingNode) const
231{

Callers 5

navigateToSenderMethod · 0.45
navigateToReceiverMethod · 0.45
objectSelectedMethod · 0.45
selectResourceMethod · 0.45
filterAcceptsRowMethod · 0.45

Calls 3

dependenciesMethod · 0.80
isValidMethod · 0.45
getMethod · 0.45

Tested by 1

objectSelectedMethod · 0.36