FEATURE: Added per-torrent ratio limiting (Christian Kandeler)

This commit is contained in:
Christophe Dumez
2011-03-07 19:26:44 +00:00
parent 4b1eade157
commit 82e41f36ee
15 changed files with 356 additions and 32 deletions

View File

@@ -547,11 +547,11 @@ public:
setValue(QString::fromUtf8("Preferences/Bittorrent/Encryption"), val);
}
qreal getMaxRatio() const {
qreal getGlobalMaxRatio() const {
return value(QString::fromUtf8("Preferences/Bittorrent/MaxRatio"), -1).toDouble();
}
void setMaxRatio(qreal ratio) {
void setGlobalMaxRatio(qreal ratio) {
setValue(QString::fromUtf8("Preferences/Bittorrent/MaxRatio"), ratio);
}