Changeset 5166 in ntrip for trunk/BNC/src/map
- Timestamp:
- Jun 8, 2013, 10:27:31 AM (12 years ago)
- Location:
- trunk/BNC/src/map
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/map/bncmapwin.cpp
r5163 r5166 50 50 51 51 _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 53 55 _webView->show(); 54 56 … … 66 68 } 67 69 70 // 71 //////////////////////////////////////////////////////////////////////////// 72 void 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 41 41 42 42 private: 43 void loadHtmlPage(); 43 44 QWebView* _webView; 44 45 }; -
trunk/BNC/src/map/html/index.html
r5164 r5166 11 11 </style> 12 12 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> 15 15 16 16 <script type="text/javascript"
Note:
See TracChangeset
for help on using the changeset viewer.