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

Method data

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

Source from the content-addressed store, hash-verified

89 }
90
91 virtual Variant data( const ModelIndex& index, ModelRole role = ModelRole::Display ) const override {
92 if ( !index.isValid() )
93 return {};
94 if ( role == ModelRole::Display ) {
95 Node* node = static_cast<Node*>( index.internalData() );
96 return Variant( *node->text );
97 }
98 return {};
99 }
100
101 void filter( const std::string_view& filterText ) {
102 if ( filterText.empty() ) {

Callers

nothing calls this directly

Calls 3

VariantFunction · 0.85
internalDataMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected