Update trackersfilterwidget.h

This pull request adds a new special sidebar filter to the transfer list: Only HTTP.

    The filter displays torrents that have only HTTP tracker addresses (no HTTPS trackers present).
    Implementation follows project coding guidelines for naming, formatting, and Qt usage.
    UI and logic are consistent with other special tracker filters in the sidebar.
    All user-visible strings are wrapped in tr() for translation and localization.

Use case:
This feature is useful for users who want to quickly locate torrents that do not use secure (HTTPS) trackers, which may be relevant for diagnosing tracker issues or for privacy/security considerations.
This commit is contained in:
AdKiller 2025-05-27 12:38:12 +02:00 committed by GitHub
commit 6cb837e0ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -85,6 +85,9 @@ private:
void downloadFavicon(const QString &trackerHost, const QString &faviconURL);
void removeTracker(const QString &tracker);
static bool isOnlyHttpTrackers(const QList<BitTorrent::TrackerEntryStatus> &trackers);
QSet<BitTorrent::TorrentID> m_onlyHttpTorrents;
struct TrackerData
{
QSet<BitTorrent::TorrentID> torrents;