mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Fix compilation on Windows (Remove using namespace libtorrent; from headers)
This commit is contained in:
parent
61208fce13
commit
8a5dc1f239
33 changed files with 118 additions and 109 deletions
|
@ -47,6 +47,8 @@ const QString RSS_URL = "http://sourceforge.net/api/file/index/project-id/163414
|
|||
const QString FILE_EXT = "EXE";
|
||||
#endif
|
||||
|
||||
using namespace libtorrent;
|
||||
|
||||
ProgramUpdater::ProgramUpdater(QObject *parent) :
|
||||
QObject(parent)
|
||||
{
|
||||
|
@ -55,7 +57,7 @@ ProgramUpdater::ProgramUpdater(QObject *parent) :
|
|||
// Proxy support
|
||||
if(pref.isProxyEnabled()) {
|
||||
QNetworkProxy proxy;
|
||||
switch(pref.getHTTPProxyType()) {
|
||||
switch(pref.getProxyType()) {
|
||||
case Proxy::SOCKS4:
|
||||
case Proxy::SOCKS5:
|
||||
case Proxy::SOCKS5_PW:
|
||||
|
@ -64,8 +66,8 @@ ProgramUpdater::ProgramUpdater(QObject *parent) :
|
|||
proxy.setType(QNetworkProxy::HttpProxy);
|
||||
break;
|
||||
}
|
||||
proxy.setHostName(pref.getHTTPProxyIp());
|
||||
proxy.setPort(pref.getHTTPProxyPort());
|
||||
proxy.setHostName(pref.getProxyIp());
|
||||
proxy.setPort(pref.getProxyPort());
|
||||
// Proxy authentication
|
||||
if(pref.isProxyAuthEnabled()) {
|
||||
proxy.setUser(pref.getProxyUsername());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue