MCPcopy Create free account
hub / github.com/DISTRHO/DPF / evaluate

Method evaluate

distrho/extra/WebViewImpl.cpp:1843–1868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1841 _QApplication_postEvent(QApplication_postEvent) {}
1842
1843 void evaluate(const char* const js) override
1844 {
1845 QString qstrjs;
1846 {
1847 const size_t js_len = std::strlen(js);
1848 ushort* const js_qchar = new ushort[js_len + 1];
1849
1850 for (size_t i = 0; i < js_len; ++i)
1851 js_qchar[i] = js[i];
1852
1853 js_qchar[js_len] = 0;
1854
1855 _QString__init(&qstrjs, reinterpret_cast<const QChar*>(js_qchar), js_len);
1856 }
1857
1858 if (_qtVersion == 5)
1859 _QWebEnginePage_runJavaScript_compat(&_page, qstrjs);
1860 else
1861 _QWebEnginePage_runJavaScript(&_page, qstrjs, 0,
1862 #ifdef DISTRHO_PROPER_CPP11_SUPPORT
1863 {}
1864 #else
1865 0
1866 #endif
1867 );
1868 }
1869
1870 void reload() override
1871 {

Callers 1

web_wake_idleFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected