mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Add option to auto hide zero status filters
* Extract transfer list filter classes into separate files * Add option to auto hide zero status filters PR #18801. Closes #13996.
This commit is contained in:
parent
d40be79c69
commit
0dcb65bb7c
26 changed files with 1222 additions and 891 deletions
|
@ -1551,6 +1551,16 @@ void Preferences::setTransSelFilter(const int index)
|
|||
setValue(u"TransferListFilters/selectedFilterIndex"_qs, index);
|
||||
}
|
||||
|
||||
bool Preferences::getHideZeroStatusFilters() const
|
||||
{
|
||||
return value<bool>(u"TransferListFilters/HideZeroStatusFilters"_qs, false);
|
||||
}
|
||||
|
||||
void Preferences::setHideZeroStatusFilters(const bool hide)
|
||||
{
|
||||
setValue(u"TransferListFilters/HideZeroStatusFilters"_qs, hide);
|
||||
}
|
||||
|
||||
QByteArray Preferences::getTransHeaderState() const
|
||||
{
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue