12 |
settings->setAttribute( QWebSettings::PluginsEnabled, true); |
settings->setAttribute( QWebSettings::PluginsEnabled, true); |
13 |
} |
} |
14 |
|
|
15 |
void WebView::start(QString url, QString screenid) { |
void WebView::start(QString& url, QString& screenid) { |
16 |
try { |
try { |
17 |
this->load( QUrl( generateUrl(url, screenid) ) ); |
this->load( QUrl( generateUrl(url, screenid) ) ); |
18 |
} catch (std::exception& e) { |
} catch (std::exception& e) { |
27 |
this->setHtml( str ); |
this->setHtml( str ); |
28 |
} |
} |
29 |
|
|
30 |
QString WebView::generateUrl(QString url, QString screenid) { |
QString WebView::generateUrl(QString& url, QString& screenid) { |
31 |
QDesktopWidget* desktop = QApplication::desktop(); |
QDesktopWidget* desktop = QApplication::desktop(); |
32 |
QRect rect = desktop->screenGeometry(); |
QRect rect = desktop->screenGeometry(); |
33 |
|
|