MCPcopy Create free account
hub / github.com/Martchus/tageditor / makeSongDescription

Method makeSongDescription

cli/scriptapi.cpp:269–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269QtGui::SongDescription UtilityObject::makeSongDescription(const QJSValue &obj)
270{
271 auto desc = QtGui::SongDescription();
272 desc.songId = propertyString(obj, QStringLiteral("songId"));
273 desc.title = propertyString(obj, QStringLiteral("title"));
274 desc.album = propertyString(obj, QStringLiteral("album"));
275 desc.albumId = propertyString(obj, QStringLiteral("albumId"));
276 desc.artist = propertyString(obj, QStringLiteral("artist"));
277 desc.artistId = propertyString(obj, QStringLiteral("artistId"));
278 desc.year = propertyString(obj, QStringLiteral("year"));
279 return desc;
280}
281
282PositionInSetObject::PositionInSetObject(TagParser::PositionInSet value, TagValueObject *relatedValue, QJSEngine *engine, QObject *parent)
283 : QObject(parent)

Callers

nothing calls this directly

Calls 2

propertyStringFunction · 0.85
SongDescriptionClass · 0.70

Tested by

no test coverage detected