Changeset 5166 in ntrip


Ignore:
Timestamp:
Jun 8, 2013, 10:27:31 AM (8 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/map
Files:
3 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
  • trunk/BNC/src/map/bncmapwin.h

    r5161 r5166  
    4141
    4242 private:
     43  void loadHtmlPage();
    4344  QWebView* _webView;
    4445};
  • trunk/BNC/src/map/html/index.html

    r5164 r5166  
    1111    </style>
    1212
    13     <script type="text/javascript" src="qrc:///html/init.js"></script>
    14     <script type="text/javascript" src="qrc:///html/tools.js"></script>
     13    <script type="text/javascript" src="qrc:///map/html/init.js"></script>
     14    <script type="text/javascript" src="qrc:///map/html/tools.js"></script>
    1515
    1616    <script type="text/javascript"
Note: See TracChangeset for help on using the changeset viewer.