Changeset 5269 in ntrip


Ignore:
Timestamp:
Jun 18, 2013, 1:40:04 PM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r5253 r5269  
    5858  _webView = new QWebView(this);
    5959  connect(_webView, SIGNAL(loadFinished(bool)), this, SLOT(slotInitMap(bool)));
     60
     61  // Proxy Settings
     62  // --------------
     63  bncSettings settings;
     64  QString proxyHost = settings.value("proxyHost").toString();
     65  int     proxyPort = settings.value("proxyPort").toInt();
     66  if (!proxyHost.isEmpty()) {
     67    QNetworkProxy proxy(QNetworkProxy::HttpProxy, proxyHost, proxyPort);
     68    _webView->page()->networkAccessManager()->setProxy(proxy);
     69  }
    6070
    6171  loadHtmlPage();
Note: See TracChangeset for help on using the changeset viewer.