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

Method mapToSource

plugins/widgetinspector/widget3dwindowmodel.cpp:114–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114QModelIndex Widget3DWindowModel::mapToSource(const QModelIndex &proxyIndex) const
115{
116 if (!proxyIndex.isValid()) {
117 return QModelIndex();
118 }
119
120 auto node = static_cast<WindowNode *>(proxyIndex.internalPointer());
121 if (!node) {
122 return QModelIndex();
123 }
124
125 return node->sourceIdx;
126}
127
128void Widget3DWindowModel::sourceModelRowsInserted(const QModelIndex &parent, int first, int last)
129{

Callers 1

cellSelectionChangedMethod · 0.45

Calls 2

QModelIndexClass · 0.70
isValidMethod · 0.45

Tested by 1

cellSelectionChangedMethod · 0.36