MCPcopy Create free account
hub / github.com/baldurk/renderdoc / rowCount

Method rowCount

qrenderdoc/Windows/BufferViewer.cpp:937–954  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

935
936 QModelIndex parent(const QModelIndex &index) const override { return QModelIndex(); }
937 int rowCount(const QModelIndex &parent = QModelIndex()) const override
938 {
939 int ret = config.numRows;
940 if(config.pagingOffset > 0)
941 ret++;
942
943 if(ret == 0)
944 {
945 if(!config.statusString.isEmpty())
946 ret += config.statusString.count(QLatin1Char('\n')) + 1;
947 if(config.noVertices)
948 ret++;
949 if(config.noInstances)
950 ret++;
951 }
952
953 return ret;
954 }
955 int columnCount(const QModelIndex &parent = QModelIndex()) const override
956 {
957 return totalColumnCount;

Callers 2

render_clickedMethod · 0.45
exportDataMethod · 0.45

Calls 4

QLatin1CharClass · 0.85
QModelIndexClass · 0.50
isEmptyMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected