Add tooltip and change webui column name.

This commit is contained in:
Stiliyan Tonev (Bark) 2025-01-18 09:49:46 +02:00
commit 91b4c0596a
2 changed files with 2 additions and 1 deletions

View file

@ -203,6 +203,7 @@ QVariant TransferListModel::headerData(const int section, const Qt::Orientation
switch (section) switch (section)
{ {
case TR_POPULARITY: return tr("Ratio / Time Active (in months), indicates how popular the torrent is"); case TR_POPULARITY: return tr("Ratio / Time Active (in months), indicates how popular the torrent is");
case TR_PERCENT_SELECTED: return tr("Wanted / Total size, indicates percentage of selected data to download.");
default: return {}; default: return {};
} }
} }

View file

@ -1145,7 +1145,7 @@ window.qBittorrent.DynamicTable ??= (() => {
this.newColumn("infohash_v2", "", "QBT_TR(Info Hash v2)QBT_TR[CONTEXT=TransferListModel]", 100, false); this.newColumn("infohash_v2", "", "QBT_TR(Info Hash v2)QBT_TR[CONTEXT=TransferListModel]", 100, false);
this.newColumn("reannounce", "", "QBT_TR(Reannounce In)QBT_TR[CONTEXT=TransferListModel]", 100, false); this.newColumn("reannounce", "", "QBT_TR(Reannounce In)QBT_TR[CONTEXT=TransferListModel]", 100, false);
this.newColumn("private", "", "QBT_TR(Private)QBT_TR[CONTEXT=TransferListModel]", 100, false); this.newColumn("private", "", "QBT_TR(Private)QBT_TR[CONTEXT=TransferListModel]", 100, false);
this.newColumn("percent_selected", "", "QBT_TR(Percent Selected)QBT_TR[CONTEXT=TransferListModel]", 100, false); this.newColumn("percent_selected", "", "QBT_TR(%)QBT_TR[CONTEXT=TransferListModel]", 100, false);
this.columns["state_icon"].dataProperties[0] = "state"; this.columns["state_icon"].dataProperties[0] = "state";
this.columns["name"].dataProperties.push("state"); this.columns["name"].dataProperties.push("state");