Changeset 5166 in ntrip for trunk/BNC/src/map/bncmapwin.cpp


Ignore:
Timestamp:
Jun 8, 2013, 10:27:31 AM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/map/bncmapwin.cpp

    r5163 r5166  
    5050
    5151  _webView = new QWebView(this);
    52   _webView->load(QUrl("http://igs.bkg.bund.de/ntrip/ppp#Scene6"));
     52  ///  _webView->load(QUrl("http://igs.bkg.bund.de/ntrip/ppp#Scene6"));
     53  loadHtmlPage();
     54
    5355  _webView->show(); 
    5456
     
    6668}
    6769
     70//
     71////////////////////////////////////////////////////////////////////////////
     72void bncMapWin::loadHtmlPage() {
     73
     74  QFile htmlFile(":/map/html/index.html");
     75  if (!htmlFile.open(QFile::ReadOnly)) {
     76    return;
     77  }
     78
     79  QTextStream stream(&htmlFile);
     80  QString html = stream.readAll();
     81
     82  _webView->setHtml(html);
     83}
     84
Note: See TracChangeset for help on using the changeset viewer.