Merge pull request #11433 from jagannatharjun/colors

Allow transfer list text color changes through QSS
This commit is contained in:
sledgehammer999
2019-12-19 18:20:49 +02:00
committed by GitHub
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)