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

Function mapToSourceRow

ui/tools/objectinspector/connectionstab.cpp:62–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60ConnectionsTab::~ConnectionsTab() = default;
61
62static int mapToSourceRow(const QModelIndex &index)
63{
64 QModelIndex i = index;
65 while (const QAbstractProxyModel *proxy = qobject_cast<const QAbstractProxyModel *>(i.model()))
66 i = proxy->mapToSource(i);
67 return i.row();
68}
69
70void ConnectionsTab::inboundContextMenu(const QPoint &pos)
71{

Callers 2

inboundContextMenuMethod · 0.85
outboundContextMenuMethod · 0.85

Calls 3

rowMethod · 0.80
modelMethod · 0.45
mapToSourceMethod · 0.45

Tested by

no test coverage detected