MCPcopy Create free account
hub / github.com/SpartanJ/eepp / rowCount

Method rowCount

include/eepp/ui/models/stringmapmodel.hpp:51–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 virtual ~StringMapModel() {}
50
51 virtual size_t rowCount( const ModelIndex& parent = ModelIndex() ) const override {
52 if ( !parent.isValid() )
53 return mRoot->visibleChildren.size();
54 Node* node = static_cast<Node*>( parent.internalData() );
55 return node->visibleChildren.size();
56 }
57
58 virtual size_t columnCount( const ModelIndex& = ModelIndex() ) const override { return 1; }
59

Callers

nothing calls this directly

Calls 4

ModelIndexFunction · 0.85
internalDataMethod · 0.80
isValidMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected