MCPcopy Create free account
hub / github.com/LMMS/lmms / setName

Function setName

include/DummyEffect.h:120–139  ·  view source on GitHub ↗

Parse the display name from the dom

Source from the content-addressed store, hash-verified

118
119 // Parse the display name from the dom
120 virtual void setName()
121 {
122 QDomNodeList keys = originalPluginData().elementsByTagName( "key" );
123 for( int i = 0; !keys.item( i ).isNull(); ++i )
124 {
125 QDomNodeList attributes = keys.item( i ).toElement().elementsByTagName( "attribute" );
126 for( int j = 0; !attributes.item( j ).isNull(); ++j )
127 {
128 QDomElement attribute = attributes.item( j ).toElement();
129 if( attribute.hasAttribute( "value" ) )
130 {
131 QString name = tr("NOT FOUND") + " (" + attribute.attribute( "value" ) + ")";
132 setDisplayName(name);
133 return;
134 }
135
136 }
137
138 }
139 }
140} ;
141
142

Callers 1

DummyEffectClass · 0.70

Calls 1

isNullMethod · 0.80

Tested by

no test coverage detected