mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 16:53:08 -07:00
Drop libtorrent 0.16.x support.
This commit is contained in:
parent
f9dc76928c
commit
e72cc4eaf9
22 changed files with 115 additions and 498 deletions
|
@ -40,8 +40,6 @@
|
|||
#include <QDesktopServices>
|
||||
#include <QDebug>
|
||||
|
||||
#include <libtorrent/version.hpp>
|
||||
|
||||
#include <cstdlib>
|
||||
#include "options_imp.h"
|
||||
#include "core/preferences.h"
|
||||
|
@ -221,9 +219,7 @@ options_imp::options_imp(QWidget *parent):
|
|||
connect(textProxyIP, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton()));
|
||||
connect(spinProxyPort, SIGNAL(valueChanged(QString)), this, SLOT(enableApplyButton()));
|
||||
connect(checkProxyPeerConnecs, SIGNAL(toggled(bool)), SLOT(enableApplyButton()));
|
||||
#if LIBTORRENT_VERSION_NUM >= 10000
|
||||
connect(checkForceProxy, SIGNAL(toggled(bool)), SLOT(enableApplyButton()));
|
||||
#endif
|
||||
connect(checkProxyAuth, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
||||
connect(textProxyUsername, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton()));
|
||||
connect(textProxyPassword, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton()));
|
||||
|
@ -264,11 +260,6 @@ options_imp::options_imp(QWidget *parent):
|
|||
scrollArea_advanced->setLayout(adv_layout);
|
||||
connect(advancedSettings, SIGNAL(settingsChanged()), this, SLOT(enableApplyButton()));
|
||||
|
||||
//Hide incompatible options
|
||||
#if LIBTORRENT_VERSION_NUM < 10000
|
||||
checkForceProxy->setVisible(false);
|
||||
#endif
|
||||
|
||||
// Adapt size
|
||||
show();
|
||||
loadWindowState();
|
||||
|
@ -436,9 +427,7 @@ void options_imp::saveOptions() {
|
|||
pref->setProxyIp(getProxyIp());
|
||||
pref->setProxyPort(getProxyPort());
|
||||
pref->setProxyPeerConnections(checkProxyPeerConnecs->isChecked());
|
||||
#if LIBTORRENT_VERSION_NUM >= 10000
|
||||
pref->setForceProxy(checkForceProxy->isChecked());
|
||||
#endif
|
||||
pref->setProxyAuthEnabled(isProxyAuthEnabled());
|
||||
pref->setProxyUsername(getProxyUsername());
|
||||
pref->setProxyPassword(getProxyPassword());
|
||||
|
@ -691,9 +680,7 @@ void options_imp::loadOptions() {
|
|||
textProxyIP->setText(pref->getProxyIp());
|
||||
spinProxyPort->setValue(pref->getProxyPort());
|
||||
checkProxyPeerConnecs->setChecked(pref->proxyPeerConnections());
|
||||
#if LIBTORRENT_VERSION_NUM >= 10000
|
||||
checkForceProxy->setChecked(pref->getForceProxy());
|
||||
#endif
|
||||
checkProxyAuth->setChecked(pref->isProxyAuthEnabled());
|
||||
textProxyUsername->setText(pref->getProxyUsername());
|
||||
textProxyPassword->setText(pref->getProxyPassword());
|
||||
|
@ -995,9 +982,7 @@ void options_imp::enableProxy(int index) {
|
|||
lblProxyPort->setEnabled(true);
|
||||
spinProxyPort->setEnabled(true);
|
||||
checkProxyPeerConnecs->setEnabled(true);
|
||||
#if LIBTORRENT_VERSION_NUM >= 10000
|
||||
checkForceProxy->setEnabled(true);
|
||||
#endif
|
||||
if (index > 1) {
|
||||
checkProxyAuth->setEnabled(true);
|
||||
} else {
|
||||
|
@ -1011,9 +996,7 @@ void options_imp::enableProxy(int index) {
|
|||
lblProxyPort->setEnabled(false);
|
||||
spinProxyPort->setEnabled(false);
|
||||
checkProxyPeerConnecs->setEnabled(false);
|
||||
#if LIBTORRENT_VERSION_NUM >= 10000
|
||||
checkForceProxy->setEnabled(false);
|
||||
#endif
|
||||
checkProxyAuth->setEnabled(false);
|
||||
checkProxyAuth->setChecked(false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue