1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-08 22:07:53 +00:00

- Improve readability of tracker error tooltips

- Update uTorrent spoofer to v1.9.4
This commit is contained in:
Christophe Dumez 2009-09-03 11:05:20 +00:00
parent f790b80aa3
commit 63ad2def91
2 changed files with 10 additions and 2 deletions

View File

@ -63,7 +63,7 @@ bittorrent::bittorrent() : DHTEnabled(false), preAllocateAll(false), addInPause(
// Check if we should spoof utorrent
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
if(settings.value(QString::fromUtf8("AzureusSpoof"), false).toBool()) {
s = new session(fingerprint("UT", 1, 8, 3, 0), 0);
s = new session(fingerprint("UT", 1, 8, 4, 0), 0);
} else {
s = new session(fingerprint("qB", VERSION_MAJOR, VERSION_MINOR, VERSION_BUGFIX, 0), 0);
}

View File

@ -454,7 +454,15 @@ void properties::loadTrackers(){
if(errors.contains(current_tracker)) {
item->setForeground(QBrush(QColor("red")));
// Set tooltip
item->setToolTip(errors[current_tracker]);
QString msg="";
unsigned int i=0;
foreach(QString word, errors[current_tracker].split(" ")) {
if(i > 0 && i%5!=1) msg += " ";
msg += word;
if(i> 0 && i%5==0) msg += "\n";
++i;
}
item->setToolTip(msg);
} else {
item->setForeground(QBrush(QColor("green")));
}