// public slots: QObject *Phantom::createWebPage() { WebPage *page = new WebPage(this, &m_config); m_pages.append(page); page->applySettings(m_defaultPageSettings); page->setLibraryPath(QFileInfo(m_config.scriptFile()).dir().absolutePath()); if (m_config.debug()) { page->showInspector(m_config.remoteDebugPort()); } return page; }
// public slots: QObject *Phantom::createWebPage() { WebPage *page = new WebPage(this); // Store pointer to the page for later cleanup m_pages.append(page); // Apply default settings to the page page->applySettings(m_defaultPageSettings); // Show web-inspector if in debug mode if (m_config.debug()) { page->showInspector(m_config.remoteDebugPort()); } return page; }