mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-10 01:22:31 -06:00
Update function signature for Qt6 qHash()
Since the `qhash()` signature has changed in Qt6.
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QtGlobal>
|
||||
#include <QtContainerFwd>
|
||||
#include <QMetaType>
|
||||
#include <QString>
|
||||
@@ -97,7 +98,11 @@ namespace BitTorrent
|
||||
Error
|
||||
};
|
||||
|
||||
uint qHash(TorrentState key, uint seed);
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
||||
std::size_t qHash(TorrentState key, std::size_t seed = 0);
|
||||
#else
|
||||
uint qHash(TorrentState key, uint seed = 0);
|
||||
#endif
|
||||
|
||||
class Torrent : public AbstractFileStorage
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user