Changeset 5321 in ntrip


Ignore:
Timestamp:
Jul 15, 2013, 12:32:56 PM (11 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/map
Files:
2 edited

Legend:

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

    r5305 r5321  
    5858  _webView = new QWebView(this);
    5959  connect(_webView, SIGNAL(loadFinished(bool)), this, SLOT(slotInitMap(bool)));
     60
     61  MyWebPage* webPage = new MyWebPage();
     62  _webView->setPage(webPage);
    6063
    6164  // Proxy Settings
  • trunk/BNC/src/map/bncmapwin.h

    r5234 r5321  
    5858};
    5959
     60class MyWebPage : public QWebPage {
     61 Q_OBJECT
     62 protected:
     63  virtual QString userAgentForUrl(const QUrl &url) const {
     64    return QString::fromUtf8("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b8) Gecko/20100101 Firefox/4.0b8");
     65  }
     66};
     67
    6068#endif
Note: See TracChangeset for help on using the changeset viewer.