Changeset 5167 in ntrip for trunk/BNC/src
- Timestamp:
- Jun 8, 2013, 10:36:54 AM (11 years ago)
- Location:
- trunk/BNC/src/map
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/map/bncmapwin.cpp
r5166 r5167 50 50 51 51 _webView = new QWebView(this); 52 connect(_webView, SIGNAL(loadFinished(bool)), this, SLOT(slotInitMap(bool))); 53 52 54 /// _webView->load(QUrl("http://igs.bkg.bund.de/ntrip/ppp#Scene6")); 53 55 loadHtmlPage(); … … 83 85 } 84 86 87 // 88 //////////////////////////////////////////////////////////////////////////// 89 void bncMapWin::slotInitMap(bool isOk) { 90 qDebug() << "slotInitMap"; 91 if (!isOk) { 92 return; 93 } 94 QString location("-34.397, 150.644"); 95 _webView->page()->mainFrame()->evaluateJavaScript(QString("initialize( %1 )").arg(location)); 96 } -
trunk/BNC/src/map/bncmapwin.h
r5166 r5167 27 27 28 28 #include <QtGui> 29 #include <Q WebView>29 #include <QtWebKit> 30 30 31 31 class bncMapWin : public QDialog { … … 40 40 public slots: 41 41 42 private slots: 43 void slotInitMap(bool isOk); 44 42 45 private: 43 46 void loadHtmlPage();
Note:
See TracChangeset
for help on using the changeset viewer.