Enable Plugins and JavaScript in the embedded help viewer to make it possible to embed flash videos in the documentation

Reviewed-by: Kavindra Devi Palaraja <kavindra.palaraja@nokia.com>
This commit is contained in:
Simon Hausmann
2009-03-30 15:16:44 +02:00
committed by Kavindra Devi Palaraja
parent fde8ca4a16
commit e8f364929f

View File

@@ -212,9 +212,10 @@ bool HelpPage::acceptNavigationRequest(QWebFrame *,
HelpViewer::HelpViewer(QHelpEngine *engine, CentralWidget *parent)
: QWebView(parent), helpEngine(engine), parentWidget(parent)
{
settings()->setAttribute(QWebSettings::PluginsEnabled, false);
settings()->setAttribute(QWebSettings::JavaEnabled, false);
setPage(new HelpPage(parent, helpEngine, this));
// Enable JavaScript and Plugins for embedded videos
settings()->setAttribute(QWebSettings::PluginsEnabled, true);
settings()->setAttribute(QWebSettings::JavaEnabled, true);
page()->setNetworkAccessManager(new HelpNetworkAccessManager(engine, this));