Allow to sort peer list either by country or by IP

This commit is contained in:
Nick Tiskov
2013-07-05 17:29:07 +04:00
parent b486d419dc
commit ba014d0033
5 changed files with 83 additions and 8 deletions

View File

@@ -36,6 +36,7 @@
#include <QPointer>
#include <QSet>
#include <libtorrent/peer_info.hpp>
#include "peerlistsortmodel.h"
#include "qtorrenthandle.h"
#include "misc.h"
@@ -88,7 +89,7 @@ private:
private:
QStandardItemModel *m_listModel;
PeerListDelegate *m_listDelegate;
QSortFilterProxyModel *m_proxyModel;
PeerListSortModel *m_proxyModel;
QHash<QString, QStandardItem*> m_peerItems;
QHash<QString, boost::asio::ip::tcp::endpoint> m_peerEndpoints;
QSet<QString> m_missingFlags;