|
|
|
@ -73,12 +73,15 @@ bool operator==(const PeerEndpoint &left, const PeerEndpoint &right)
@@ -73,12 +73,15 @@ bool operator==(const PeerEndpoint &left, const PeerEndpoint &right)
|
|
|
|
|
|
|
|
|
|
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) |
|
|
|
|
std::size_t qHash(const PeerEndpoint &peerEndpoint, const std::size_t seed = 0) |
|
|
|
|
{ |
|
|
|
|
return qHashMulti(seed, peerEndpoint.address, peerEndpoint.connectionType); |
|
|
|
|
} |
|
|
|
|
#else |
|
|
|
|
uint qHash(const PeerEndpoint &peerEndpoint, const uint seed = 0) |
|
|
|
|
#endif |
|
|
|
|
{ |
|
|
|
|
return (qHash(peerEndpoint.address, seed) ^ ::qHash(peerEndpoint.connectionType)); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
PeerListWidget::PeerListWidget(PropertiesWidget *parent) |
|
|
|
|
: QTreeView(parent) |
|
|
|
|