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

Method getPropertyString

src/eepp/ui/uitab.cpp:286–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286std::string UITab::getPropertyString( const PropertyDefinition* propertyDef,
287 const Uint32& propertyIndex ) const {
288 if ( NULL == propertyDef )
289 return "";
290
291 switch ( propertyDef->getPropertyId() ) {
292 case PropertyId::Text:
293 return getText().toUtf8();
294 case PropertyId::Owns:
295 return mOwnedName;
296 default:
297 return UISelectButton::getPropertyString( propertyDef, propertyIndex );
298 }
299}
300
301std::vector<PropertyId> UITab::getPropertiesImplemented() const {
302 auto props = UIWidget::getPropertiesImplemented();

Callers 6

getAbsoluteFontSizeMethod · 0.45
UTESTFunction · 0.45
processValueChangeMethod · 0.45
dataMethod · 0.45

Calls 2

getPropertyIdMethod · 0.80
toUtf8Method · 0.80

Tested by 1

UTESTFunction · 0.36