mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
Clean up code in TrackerListWidget class
This commit is contained in:
@@ -29,14 +29,10 @@
|
||||
#ifndef TRACKERLIST_H
|
||||
#define TRACKERLIST_H
|
||||
|
||||
#include <QList>
|
||||
#include <QTreeWidget>
|
||||
#include <QVector>
|
||||
|
||||
#include "propertieswidget.h"
|
||||
|
||||
class QShortcut;
|
||||
|
||||
#define NB_STICKY_ITEM 3
|
||||
class PropertiesWidget;
|
||||
|
||||
namespace BitTorrent
|
||||
{
|
||||
@@ -75,7 +71,7 @@ public slots:
|
||||
void moveSelectionDown();
|
||||
|
||||
void clear();
|
||||
void loadStickyItems(BitTorrent::TorrentHandle *const torrent);
|
||||
void loadStickyItems(const BitTorrent::TorrentHandle *torrent);
|
||||
void loadTrackers();
|
||||
void askForTrackers();
|
||||
void copyTrackerUrl();
|
||||
@@ -88,19 +84,16 @@ public slots:
|
||||
void saveSettings() const;
|
||||
|
||||
protected:
|
||||
QList<QTreeWidgetItem *> getSelectedTrackerItems() const;
|
||||
QVector<QTreeWidgetItem *> getSelectedTrackerItems() const;
|
||||
|
||||
private:
|
||||
static QStringList headerLabels();
|
||||
|
||||
PropertiesWidget *m_properties;
|
||||
QHash<QString, QTreeWidgetItem *> m_trackerItems;
|
||||
QTreeWidgetItem *m_DHTItem;
|
||||
QTreeWidgetItem *m_PEXItem;
|
||||
QTreeWidgetItem *m_LSDItem;
|
||||
QShortcut *m_editHotkey;
|
||||
QShortcut *m_deleteHotkey;
|
||||
QShortcut *m_copyHotkey;
|
||||
|
||||
static QStringList headerLabels();
|
||||
};
|
||||
|
||||
#endif // TRACKERLIST_H
|
||||
|
||||
Reference in New Issue
Block a user