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


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

Legend:

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

    r5166 r5167  
    5050
    5151  _webView = new QWebView(this);
     52  connect(_webView, SIGNAL(loadFinished(bool)), this, SLOT(slotInitMap(bool)));
     53
    5254  ///  _webView->load(QUrl("http://igs.bkg.bund.de/ntrip/ppp#Scene6"));
    5355  loadHtmlPage();
     
    8385}
    8486
     87//
     88////////////////////////////////////////////////////////////////////////////
     89void 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}
Note: See TracChangeset for help on using the changeset viewer.