Changeset 8909 in ntrip for trunk/BNC/src/bncmain.cpp


Ignore:
Timestamp:
Mar 22, 2020, 1:28:42 PM (4 years ago)
Author:
stuerze
Message:

try to reanimate map view using QWebEngineWidgets only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncmain.cpp

    r8900 r8909  
    4444#include <QFile>
    4545#include <iostream>
     46#include <QNetworkProxy>
    4647
    4748#include "app.h"
     
    376377  }
    377378  else { // start non-gui Version
    378 
     379    //
    379380  }
    380381
     
    382383
    383384  bncSettings settings;
     385
     386  // Proxy Settings
     387  // --------------
     388  QString proxyHost = settings.value("proxyHost").toString();
     389  int     proxyPort = settings.value("proxyPort").toInt();
     390  if (!proxyHost.isEmpty()) {
     391    QNetworkProxy proxy;
     392    proxy.setType(QNetworkProxy::HttpProxy);
     393    proxy.setHostName(proxyHost);
     394    proxy.setPort(proxyPort);
     395    QNetworkProxy::setApplicationProxy(proxy);
     396  }
    384397
    385398  for (int ii = 1; ii < argc - 2; ii++) {
     
    410423
    411424    // Interactive Mode - open the main window
    412   // ---------------------------------------
     425  // -----------------------------------------
    413426  if (interactive) {
    414427
Note: See TracChangeset for help on using the changeset viewer.