* @brief Installs the __ss table-API bridge; the SDK prelude exposes the friendly globals. */
| 2712 | * @brief Installs the __ss table-API bridge; the SDK prelude exposes the friendly globals. |
| 2713 | */ |
| 2714 | void 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 | } |
no outgoing calls