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

Method target

cli/scriptapi.cpp:473–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471}
472
473QJSValue TagObject::target() const
474{
475 const auto &target = m_tag.target();
476 auto obj = m_engine->newObject();
477 obj.setProperty(QStringLiteral("level"), m_engine->toScriptValue(target.level()));
478 obj.setProperty(QStringLiteral("levelName"), QJSValue(QString::fromStdString(target.levelName())));
479 obj.setProperty(QStringLiteral("tracks"), m_engine->toScriptValue(QList<std::uint64_t>(target.tracks().cbegin(), target.tracks().cend())));
480 obj.setProperty(QStringLiteral("chapters"), m_engine->toScriptValue(QList<std::uint64_t>(target.chapters().cbegin(), target.chapters().cend())));
481 obj.setProperty(QStringLiteral("editions"), m_engine->toScriptValue(QList<std::uint64_t>(target.editions().cbegin(), target.editions().cend())));
482 obj.setProperty(
483 QStringLiteral("attachments"), m_engine->toScriptValue(QList<std::uint64_t>(target.attachments().cbegin(), target.attachments().cend())));
484 return obj;
485}
486
487QString TagObject::propertyNameForField(TagParser::KnownField field)
488{

Callers 5

tagNameFunction · 0.45
setTagInfoFunction · 0.45
applyChangesMethod · 0.45
TagInfoMethod · 0.45
mkDocMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected