Changeset 5167 in ntrip for trunk/BNC/src


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

    r5166 r5167  
    2727
    2828#include <QtGui>
    29 #include <QWebView>
     29#include <QtWebKit>
    3030
    3131class bncMapWin : public QDialog {
     
    4040 public slots:
    4141
     42 private slots:
     43  void slotInitMap(bool isOk);
     44
    4245 private:
    4346  void loadHtmlPage();
Note: See TracChangeset for help on using the changeset viewer.