MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / showHomePage

Method showHomePage

src/WizMainWindow.cpp:3756–3767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3754}
3755
3756void WizMainWindow::showHomePage()
3757{
3758 // Get welcome.html
3759 QString welcomeHtml = Utils::WizPathResolve::resourcesPath() + "files/welcomepage/index.html";
3760 // Setup WebEngine
3761 WizWebEngineView *webView = new WizWebEngineView(
3762 {{"WizExplorerApp", WizMainWindow::instance()->publicAPIsObject()}}, nullptr);
3763 QPointer<WizWebsiteView> websiteView = new WizWebsiteView(webView, *this);
3764 websiteView->viewHtml(QUrl::fromLocalFile(welcomeHtml));
3765 // Show in tab browser
3766 m_mainTabBrowser->createTab(websiteView);
3767}
3768
3769/*!
3770 Create document view and setup signal-slot connections.

Callers

nothing calls this directly

Calls 3

viewHtmlMethod · 0.80
createTabMethod · 0.80
publicAPIsObjectMethod · 0.45

Tested by

no test coverage detected