Changeset 5321 in ntrip
- Timestamp:
- Jul 15, 2013, 12:32:56 PM (12 years ago)
- Location:
- trunk/BNC/src/map
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/map/bncmapwin.cpp
r5305 r5321 58 58 _webView = new QWebView(this); 59 59 connect(_webView, SIGNAL(loadFinished(bool)), this, SLOT(slotInitMap(bool))); 60 61 MyWebPage* webPage = new MyWebPage(); 62 _webView->setPage(webPage); 60 63 61 64 // Proxy Settings -
trunk/BNC/src/map/bncmapwin.h
r5234 r5321 58 58 }; 59 59 60 class 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 60 68 #endif
Note:
See TracChangeset
for help on using the changeset viewer.