mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 01:44:26 +00:00
Improved program options
This commit is contained in:
parent
a993b2b3f1
commit
335e7366fd
@ -176,11 +176,6 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
|
||||
connect(checkProxyAuth_http, SIGNAL(toggled(bool)), this, SLOT(enableHTTPProxyAuth(bool)));
|
||||
connect(comboProxyType, SIGNAL(currentIndexChanged(int)),this, SLOT(enablePeerProxy(int)));
|
||||
connect(checkProxyAuth, SIGNAL(toggled(bool)), this, SLOT(enablePeerProxyAuth(bool)));
|
||||
// Misc tab
|
||||
connect(checkIPFilter, SIGNAL(toggled(bool)), this, SLOT(enableFilter(bool)));
|
||||
connect(checkEnableRSS, SIGNAL(toggled(bool)), this, SLOT(enableRSS(bool)));
|
||||
// Web UI tab
|
||||
connect(checkWebUi, SIGNAL(toggled(bool)), this, SLOT(enableWebUi(bool)));
|
||||
|
||||
// Apply button is activated when a value is changed
|
||||
// General tab
|
||||
@ -824,12 +819,10 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
|
||||
// Misc preferences
|
||||
// * IP Filter
|
||||
checkIPFilter->setChecked(Preferences::isFilteringEnabled());
|
||||
enableFilter(checkIPFilter->isChecked());
|
||||
textFilterPath->setText(Preferences::getFilter());
|
||||
// End IP Filter
|
||||
// * RSS
|
||||
checkEnableRSS->setChecked(Preferences::isRSSEnabled());
|
||||
enableRSS(checkEnableRSS->isChecked());
|
||||
spinRSSRefresh->setValue(Preferences::getRSSRefreshInterval());
|
||||
spinRSSMaxArticlesPerFeed->setValue(Preferences::getRSSMaxArticlesPerFeed());
|
||||
// End RSS preferences
|
||||
@ -841,7 +834,6 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
|
||||
// End Queueing system preferences
|
||||
// Web UI
|
||||
checkWebUi->setChecked(Preferences::isWebUiEnabled());
|
||||
enableWebUi(checkWebUi->isChecked());
|
||||
spinWebUiPort->setValue(Preferences::getWebUiPort());
|
||||
textWebUiUsername->setText(Preferences::getWebUiUsername());
|
||||
textWebUiPassword->setText(Preferences::getWebUiPassword());
|
||||
@ -1132,16 +1124,6 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
|
||||
}
|
||||
}
|
||||
|
||||
void options_imp::enableFilter(bool checked){
|
||||
lblFilterPath->setEnabled(checked);
|
||||
textFilterPath->setEnabled(checked);
|
||||
browseFilterButton->setEnabled(checked);
|
||||
}
|
||||
|
||||
void options_imp::enableRSS(bool checked) {
|
||||
groupRSSSettings->setEnabled(checked);
|
||||
}
|
||||
|
||||
void options_imp::enableUploadLimit(bool checked){
|
||||
spinUploadLimit->setEnabled(checked);
|
||||
}
|
||||
@ -1430,11 +1412,6 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
|
||||
|
||||
// Web UI
|
||||
|
||||
void options_imp::enableWebUi(bool checkBoxValue){
|
||||
groupWebUiServer->setEnabled(checkBoxValue);
|
||||
groupWebUiAuth->setEnabled(checkBoxValue);
|
||||
}
|
||||
|
||||
bool options_imp::isWebUiEnabled() const
|
||||
{
|
||||
return checkWebUi->isChecked();
|
||||
|
@ -139,8 +139,6 @@ protected slots:
|
||||
void enableMaxUploadsLimitPerTorrent(bool checked);
|
||||
void enableShareRatio(bool checked);
|
||||
void enableDeleteRatio(bool checked);
|
||||
void enableFilter(bool checked);
|
||||
void enableRSS(bool checked);
|
||||
void enableSpoofingSettings(int index);
|
||||
void setStyle(QString style);
|
||||
void on_buttonBox_accepted();
|
||||
@ -155,7 +153,6 @@ protected slots:
|
||||
void enableSystrayOptions();
|
||||
void disableSystrayOptions();
|
||||
void setSystrayOptionsState(bool checked);
|
||||
void enableWebUi(bool checkBoxValue);
|
||||
void changePage(QListWidgetItem*, QListWidgetItem*);
|
||||
void loadWindowState();
|
||||
void saveWindowState() const;
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user