From 6cb837e0ef048bb22ee13fd110d15a57d55359c4 Mon Sep 17 00:00:00 2001 From: AdKiller Date: Tue, 27 May 2025 12:38:12 +0200 Subject: [PATCH] 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. --- src/gui/transferlistfilters/trackersfilterwidget.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/transferlistfilters/trackersfilterwidget.h b/src/gui/transferlistfilters/trackersfilterwidget.h index 0b7e82731..cf4cc1821 100644 --- a/src/gui/transferlistfilters/trackersfilterwidget.h +++ b/src/gui/transferlistfilters/trackersfilterwidget.h @@ -85,6 +85,9 @@ private: void downloadFavicon(const QString &trackerHost, const QString &faviconURL); void removeTracker(const QString &tracker); +static bool isOnlyHttpTrackers(const QList &trackers); + QSet m_onlyHttpTorrents; + struct TrackerData { QSet torrents;