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:
AdKiller 2025-05-27 13:43:17 +02:00 committed by GitHub
commit 8089b5903b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}; };