|
|
@ -167,10 +167,8 @@ public: |
|
|
|
labelFilters = new LabelFiltersList(this); |
|
|
|
labelFilters = new LabelFiltersList(this); |
|
|
|
vLayout->addWidget(labelFilters); |
|
|
|
vLayout->addWidget(labelFilters); |
|
|
|
setLayout(vLayout); |
|
|
|
setLayout(vLayout); |
|
|
|
// Limit status filters list height
|
|
|
|
labelFilters->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); |
|
|
|
statusFilters->setFixedHeight(100); |
|
|
|
|
|
|
|
statusFilters->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); |
|
|
|
statusFilters->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); |
|
|
|
statusFilters->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); |
|
|
|
|
|
|
|
statusFilters->setSpacing(0); |
|
|
|
statusFilters->setSpacing(0); |
|
|
|
setContentsMargins(0,0,0,0); |
|
|
|
setContentsMargins(0,0,0,0); |
|
|
|
vLayout->setSpacing(2); |
|
|
|
vLayout->setSpacing(2); |
|
|
@ -226,6 +224,10 @@ public: |
|
|
|
delete vLayout; |
|
|
|
delete vLayout; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QListWidget* getStatusFilters() const { |
|
|
|
|
|
|
|
return statusFilters; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void saveSettings() const { |
|
|
|
void saveSettings() const { |
|
|
|
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent")); |
|
|
|
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent")); |
|
|
|
settings.beginGroup(QString::fromUtf8("TransferListFilters")); |
|
|
|
settings.beginGroup(QString::fromUtf8("TransferListFilters")); |
|
|
|