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

Method mapFromSource

examples/Sql/main.cpp:44–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 {
43 }
44 QModelIndex mapFromSource(const QModelIndex &sourceIndex) const override
45 {
46 return index(sourceIndex.column(), sourceIndex.row());
47 }
48 QModelIndex mapToSource(const QModelIndex &proxyIndex) const override
49 {
50 return sourceModel()->index(proxyIndex.column(), proxyIndex.row());

Callers

nothing calls this directly

Calls 2

rowMethod · 0.80
columnMethod · 0.45

Tested by

no test coverage detected