/[projects]/infoscreen/webview.cpp
ViewVC logotype

Diff of /infoscreen/webview.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 903 by torben, Thu Jun 24 09:44:57 2010 UTC revision 904 by torben, Fri Jun 25 13:52:07 2010 UTC
# Line 12  WebView::WebView(QWidget* parent) : QWeb Line 12  WebView::WebView(QWidget* parent) : QWeb
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) {
# Line 27  void WebView::showError(const char* msg) Line 27  void WebView::showError(const char* msg)
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    

Legend:
Removed from v.903  
changed lines
  Added in v.904

  ViewVC Help
Powered by ViewVC 1.1.20