| 3754 | } |
| 3755 | |
| 3756 | void 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. |
nothing calls this directly
no test coverage detected