From 8089b5903b2bb34403cc48eaf738b6e78f84b9fc Mon Sep 17 00:00:00 2001 From: AdKiller Date: Tue, 27 May 2025 13:43:17 +0200 Subject: [PATCH] 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 &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. --- src/gui/transferlistfilters/trackersfilterwidget.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/transferlistfilters/trackersfilterwidget.h b/src/gui/transferlistfilters/trackersfilterwidget.h index cf4cc1821..39456f664 100644 --- a/src/gui/transferlistfilters/trackersfilterwidget.h +++ b/src/gui/transferlistfilters/trackersfilterwidget.h @@ -102,4 +102,6 @@ static bool isOnlyHttpTrackers(const QList &trac int m_totalTorrents = 0; bool m_downloadTrackerFavicon = false; QHash> m_downloadingFavicons; // + + static bool isOnlyHttpTrackers(const QList &trackers); };