diff options
author | unknown <Roopesh Chander@.(none)> | 2009-11-12 13:45:31 +0530 |
---|---|---|
committer | unknown <Roopesh Chander@.(none)> | 2009-11-12 13:45:31 +0530 |
commit | c806601e0f8a7c81aeb2321bf331090011c187b2 (patch) | |
tree | 2ac84a4b5262287f965b69c8f7d1067ffdb95138 /mainwindow.cpp | |
parent | 08c0dd8e97e715f341da6ff78997bf39d980ec55 (diff) |
enable flash
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r-- | mainwindow.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index 6b5720d..7849bc2 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -8,6 +8,7 @@ #include <QState> #include <QSignalTransition> #include <QPropertyAnimation> +#include <QWebSettings> #include "mainwindow.h" #include "ui_mainwindow.h" #include "webview.h" @@ -22,6 +23,12 @@ MainWindow::MainWindow(QWidget *parent) setMouseTracking(true); setBackgroundBrush(Qt::black); + // web settings + QWebSettings::globalSettings()->setAttribute(QWebSettings::JavascriptEnabled, true); + QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true); + QWebSettings::globalSettings()->setAttribute(QWebSettings::JavascriptCanOpenWindows, false); + QWebSettings::globalSettings()->setAttribute(QWebSettings::JavascriptCanAccessClipboard, true); + initBrowser(); // create the browser createBrowserToolbar(scene()); connect(m_webView->page(), SIGNAL(loadProgress(int)), m_browserToolbar, SLOT(setFillLevel(int))); |