mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Move RSS settings to a separate dialog
This commit is contained in:
parent
f8134b1a62
commit
54131001b0
14 changed files with 326 additions and 219 deletions
|
@ -248,9 +248,6 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
|
|||
// Misc tab
|
||||
connect(checkIPFilter, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
||||
connect(textFilterPath, SIGNAL(textChanged(QString)), this, SLOT(enableApplyButton()));
|
||||
connect(spinRSSRefresh, SIGNAL(valueChanged(QString)), this, SLOT(enableApplyButton()));
|
||||
connect(spinRSSMaxArticlesPerFeed, SIGNAL(valueChanged(QString)), this, SLOT(enableApplyButton()));
|
||||
connect(checkEnableRSS, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
||||
connect(checkEnableQueueing, SIGNAL(toggled(bool)), this, SLOT(enableApplyButton()));
|
||||
connect(spinMaxActiveDownloads, SIGNAL(valueChanged(QString)), this, SLOT(enableApplyButton()));
|
||||
connect(spinMaxActiveUploads, SIGNAL(valueChanged(QString)), this, SLOT(enableApplyButton()));
|
||||
|
@ -484,13 +481,6 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
|
|||
}
|
||||
// End IPFilter preferences
|
||||
settings.endGroup();
|
||||
// RSS
|
||||
settings.beginGroup("RSS");
|
||||
settings.setValue(QString::fromUtf8("RSSEnabled"), isRSSEnabled());
|
||||
settings.setValue(QString::fromUtf8("RSSRefresh"), spinRSSRefresh->value());
|
||||
settings.setValue(QString::fromUtf8("RSSMaxArticlesPerFeed"), spinRSSMaxArticlesPerFeed->value());
|
||||
// End RSS preferences
|
||||
settings.endGroup();
|
||||
// Queueing system
|
||||
settings.beginGroup("Queueing");
|
||||
settings.setValue(QString::fromUtf8("QueueingEnabled"), isQueueingSystemEnabled());
|
||||
|
@ -807,11 +797,6 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
|
|||
checkIPFilter->setChecked(Preferences::isFilteringEnabled());
|
||||
textFilterPath->setText(Preferences::getFilter());
|
||||
// End IP Filter
|
||||
// * RSS
|
||||
checkEnableRSS->setChecked(Preferences::isRSSEnabled());
|
||||
spinRSSRefresh->setValue(Preferences::getRSSRefreshInterval());
|
||||
spinRSSMaxArticlesPerFeed->setValue(Preferences::getRSSMaxArticlesPerFeed());
|
||||
// End RSS preferences
|
||||
// Queueing system preferences
|
||||
checkEnableQueueing->setChecked(Preferences::isQueueingSystemEnabled());
|
||||
spinMaxActiveDownloads->setValue(Preferences::getMaxActiveDownloads());
|
||||
|
@ -929,10 +914,6 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
|
|||
return checkDHT->isChecked();
|
||||
}
|
||||
|
||||
bool options_imp::isRSSEnabled() const{
|
||||
return checkEnableRSS->isChecked();
|
||||
}
|
||||
|
||||
bool options_imp::isLSDEnabled() const{
|
||||
return checkLSD->isChecked();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue