MCPcopy Create free account
hub / github.com/bumptop/BumpTop / openInBrowser

Method openInBrowser

trunk/win/Source/BT_JavaScriptAPI.cpp:624–628  ·  view source on GitHub ↗

Launch the given URL in a web browser

Source from the content-addressed store, hash-verified

622
623// Launch the given URL in a web browser
624void JavaScriptAPI::openInBrowser( QString url )
625{
626 assert(QUrl(url, QUrl::StrictMode).scheme().startsWith("http"));
627 fsManager->launchFileAsync(url);
628}
629
630// Open a file selection dialog and return the string representation of a Javascript object to be uploaded
631QString JavaScriptAPI::openFileBrowser()

Callers

nothing calls this directly

Calls 4

assertClass · 0.85
launchFileAsyncMethod · 0.80
QUrlClass · 0.50
startsWithMethod · 0.45

Tested by

no test coverage detected