mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Update trackersfilterwidget.h
This commit updates the TrackersFilterWidget header to support the new "Only HTTP" filter functionality: Adds a static helper function declaration Declares the static method static bool isOnlyHttpTrackers(const QList<BitTorrent::TrackerEntryStatus> &trackers); in the private section of the class. This method is used to determine whether a torrent's trackers are exclusively HTTP (and not HTTPS, UDP, or other schemes). This declaration allows the implementation in the corresponding .cpp file to be accessible for filtering logic, specifically enabling the new "Only HTTP" sidebar row to function correctly. The addition follows the existing coding style and encapsulates the helper within the class as a private static utility.
This commit is contained in:
parent
dcde896d1d
commit
8089b5903b
1 changed files with 2 additions and 0 deletions
|
@ -102,4 +102,6 @@ static bool isOnlyHttpTrackers(const QList<BitTorrent::TrackerEntryStatus> &trac
|
||||||
int m_totalTorrents = 0;
|
int m_totalTorrents = 0;
|
||||||
bool m_downloadTrackerFavicon = false;
|
bool m_downloadTrackerFavicon = false;
|
||||||
QHash<QString, QSet<QString>> m_downloadingFavicons; // <favicon URL, tracker hosts>
|
QHash<QString, QSet<QString>> m_downloadingFavicons; // <favicon URL, tracker hosts>
|
||||||
|
|
||||||
|
static bool isOnlyHttpTrackers(const QList<BitTorrent::TrackerEntryStatus> &trackers);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue