- Timestamp:
- Jul 26, 2008, 2:04:16 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bns.cpp
r948 r979 34 34 connect(this, SIGNAL(moveSocket(QThread*)), 35 35 this, SLOT(slotMoveSocket(QThread*))); 36 37 QSettings settings; 38 39 // Set Proxy (application-wide) 40 // ---------------------------- 41 QString proxyHost = settings.value("proxyHost").toString(); 42 int proxyPort = settings.value("proxyPort").toInt(); 43 if (!proxyHost.isEmpty()) { 44 QNetworkProxy proxy; 45 proxy.setType(QNetworkProxy::Socks5Proxy); 46 proxy.setHostName(proxyHost); 47 proxy.setPort(proxyPort); 48 QNetworkProxy::setApplicationProxy(proxy); 49 } 36 50 37 51 // Thread that handles broadcast ephemeris … … 47 61 // Server listening for rtnet results 48 62 // ---------------------------------- 49 QSettings settings;50 63 _clkSocket = 0; 51 64 _clkServer = new QTcpServer;
Note:
See TracChangeset
for help on using the changeset viewer.