Test to see if we can make flash work

parent a2d13f86
...@@ -139,12 +139,13 @@ void MainWin::handle_youtubevideo(SKMessage &msg) ...@@ -139,12 +139,13 @@ void MainWin::handle_youtubevideo(SKMessage &msg)
std::cout << "OPEN URL " << msg.parameters["url"].toStdString() << std::endl; std::cout << "OPEN URL " << msg.parameters["url"].toStdString() << std::endl;
//if(msg.parameters.contains("width") //if(msg.parameters.contains("width")
//if(msg.parameters.contains("height); //if(msg.parameters.contains("height);
WebWin *wv = new WebWin; WebWin *wv = new WebWin();
QWebPage *newWeb = new QWebPage(wv); QWebPage *newWeb = new QWebPage(wv);
wv->setPage(newWeb); wv->setPage(newWeb);
wv->setAttribute(Qt::WA_DeleteOnClose, true); wv->setAttribute(Qt::WA_DeleteOnClose, true);
wv->settings()->setAttribute(QWebSettings::PluginsEnabled, true);
wv->settings()->setAttribute(QWebSettings::JavascriptEnabled, true);
wv->setUrl(QUrl(msg.parameters["url"])); wv->setUrl(QUrl(msg.parameters["url"]));
wv->show(); wv->show();
......
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