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

Method mapFromSource

plugins/widgetinspector/widget3dwindowmodel.cpp:103–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103QModelIndex Widget3DWindowModel::mapFromSource(const QModelIndex &sourceIndex) const
104{
105 for (WindowNode *node : mNodes) {
106 if (node->sourceIdx == sourceIndex) {
107 return indexForNode(node);
108 }
109 }
110
111 return QModelIndex();
112}
113
114QModelIndex Widget3DWindowModel::mapToSource(const QModelIndex &proxyIndex) const
115{

Callers 1

itemSelectionChangedMethod · 0.45

Calls 1

QModelIndexClass · 0.70

Tested by 1

itemSelectionChangedMethod · 0.36