Allow transfer list text color changes through QSS

This commit is contained in:
Prince Gupta
2019-12-16 22:15:08 +05:30
parent d09c5e529c
commit d3aa45526a
6 changed files with 299 additions and 1 deletions

View File

@@ -177,6 +177,11 @@ CreateTorrentParams::CreateTorrentParams(const AddTorrentParams &params)
savePath = Session::instance()->defaultSavePath();
}
uint BitTorrent::qHash(const BitTorrent::TorrentState key, const uint seed)
{
return ::qHash(static_cast<std::underlying_type_t<TorrentState>>(key), seed);
}
// TorrentHandle
const qreal TorrentHandle::USE_GLOBAL_RATIO = -2.;

View File

@@ -129,6 +129,8 @@ namespace BitTorrent
Error
};
uint qHash(TorrentState key, uint seed);
class TorrentHandle : public QObject
{
Q_DISABLE_COPY(TorrentHandle)