mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Added option to disable peer host name resolution (disabled as a default)
- Fix several other bugs related to properties and preferences
This commit is contained in:
parent
3762c37517
commit
5962ef79cb
8 changed files with 81 additions and 15 deletions
|
@ -33,6 +33,7 @@
|
|||
|
||||
#include <QTreeView>
|
||||
#include <QHash>
|
||||
#include <QPointer>
|
||||
#include "qtorrenthandle.h"
|
||||
#include "misc.h"
|
||||
|
||||
|
@ -41,6 +42,7 @@ class QStandardItem;
|
|||
class QSortFilterProxyModel;
|
||||
class PeerListDelegate;
|
||||
class ReverseResolution;
|
||||
class PropertiesWidget;
|
||||
|
||||
class PeerListWidget : public QTreeView {
|
||||
Q_OBJECT
|
||||
|
@ -50,17 +52,20 @@ private:
|
|||
PeerListDelegate *listDelegate;
|
||||
QSortFilterProxyModel * proxyModel;
|
||||
QHash<QString, QStandardItem*> peerItems;
|
||||
ReverseResolution *resolver;
|
||||
QPointer<ReverseResolution> resolver;
|
||||
PropertiesWidget* properties;
|
||||
|
||||
public:
|
||||
PeerListWidget();
|
||||
PeerListWidget(PropertiesWidget *parent);
|
||||
~PeerListWidget();
|
||||
|
||||
public slots:
|
||||
void loadPeers(QTorrentHandle &h);
|
||||
void loadPeers(const QTorrentHandle &h);
|
||||
QStandardItem* addPeer(QString ip, peer_info peer);
|
||||
void updatePeer(QString ip, peer_info peer);
|
||||
void handleResolved(QString ip, QString hostname);
|
||||
void updatePeerHostNameResolutionState();
|
||||
void clear();
|
||||
|
||||
protected slots:
|
||||
void loadSettings();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue