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

Method data

src/tools/ecode/plugins/lsp/lspclientplugin.cpp:95–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 }
94
95 Variant data( const ModelIndex& index, ModelRole role ) const override {
96 LSPSymbolInformation* node = static_cast<LSPSymbolInformation*>( index.internalData() );
97 if ( node == nullptr )
98 return {};
99
100 if ( role == ModelRole::Display ) {
101 return Variant( node->name.c_str() );
102 } else if ( role == ModelRole::Icon ) {
103 return mUISceneNode->findIcon( LSPSymbolKindHelper::toIconString( node->kind ) );
104 }
105 return {};
106 }
107
108 protected:
109 UISceneNode* mUISceneNode{ nullptr };

Callers

nothing calls this directly

Calls 4

VariantFunction · 0.85
internalDataMethod · 0.80
c_strMethod · 0.80
findIconMethod · 0.45

Tested by

no test coverage detected