void WebWidget::openUrl(const QUrl &url, WindowsManager::OpenHints hints) { WebWidget *widget = clone(false, hints.testFlag(WindowsManager::PrivateOpen)); widget->setRequestedUrl(url, false); emit requestedNewWindow(widget, hints); }
void WebWidget::openUrl(const QUrl &url, OpenHints hints) { WebWidget *widget = clone(false, (hints & PrivateOpen)); widget->setRequestedUrl(url, false); emit requestedNewWindow(widget, hints); }
int main(int argc, char *argv[]){ QApplication app(argc, argv); app.setQuitOnLastWindowClosed(false); WebWidget ww; ww.show(); return app.exec(); }