Commit e8f36492 authored by Simon Hausmann's avatar Simon Hausmann Committed by Kavindra Devi Palaraja

Enable Plugins and JavaScript in the embedded help viewer to make it possible...

Enable Plugins and JavaScript in the embedded help viewer to make it possible to embed flash videos in the documentation
Reviewed-by: default avatarKavindra Devi Palaraja <kavindra.palaraja@nokia.com>
parent fde8ca4a
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment