MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / CreateWebView

Method CreateWebView

Plugins/WebBrowser/FrmWebBrowser.cpp:522–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520}
521
522CFrmWebView *CFrmWebBrowser::CreateWebView(bool offTheRecord)
523{
524 auto pView = new CFrmWebView(this);
525 if(pView) {
526 auto profile = GetProfile(offTheRecord);
527// #if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0)
528// profile->setPersistentPermissionsPolicy(QWebEngineProfile::PersistentPermissionsPolicy::AskEveryTime);
529// #endif
530 auto page = new QWebEnginePage(profile, pView);
531 pView->setPage(page);
532 }
533 return pView;
534}
535
536QWidget* CFrmWebBrowser::CreateTab(CFrmWebView **view, bool offTheRecord)
537{

Callers

nothing calls this directly

Calls 1

setPageMethod · 0.80

Tested by

no test coverage detected