MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / injectTableApiJS

Method injectTableApiJS

app/src/DataModel/FrameBuilder.cpp:2714–2727  ·  view source on GitHub ↗

* @brief Installs the __ss table-API bridge; the SDK prelude exposes the friendly globals. */

Source from the content-addressed store, hash-verified

2712 * @brief Installs the __ss table-API bridge; the SDK prelude exposes the friendly globals.
2713 */
2714void DataModel::FrameBuilder::injectTableApiJS(QJSEngine* js)
2715{
2716 Q_ASSERT(js);
2717
2718 m_externalTableApiUsers = true;
2719 m_captureFlagsDirty = true;
2720
2721 auto* bridge = new DataModel::TableApiBridge(js);
2722 bridge->store = &m_tableStore;
2723
2724 auto global = js->globalObject();
2725 auto bridgeVal = js->newQObject(bridge);
2726 global.setProperty(QStringLiteral("__ss"), bridgeVal);
2727}

Callers 4

outputWidgetDryRunMethod · 0.80
PainterMethod · 0.80
evaluateMethod · 0.80

Calls

no outgoing calls

Tested by 1

evaluateMethod · 0.64