mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-22 09:16:05 +03:00
Revise Protocol column
Add "BT" (BitTorrent) to avoid confusion about which protocol it is referring to. Also its value doesn't need to be translated. PR #20897.
This commit is contained in:
parent
65d143d4c4
commit
1c49e0973c
1 changed files with 5 additions and 5 deletions
|
@ -488,11 +488,11 @@ QVariant TrackerListModel::headerData(const int section, const Qt::Orientation o
|
||||||
switch (section)
|
switch (section)
|
||||||
{
|
{
|
||||||
case COL_URL:
|
case COL_URL:
|
||||||
return tr("URL/Announce endpoint");
|
return tr("URL/Announce Endpoint");
|
||||||
case COL_TIER:
|
case COL_TIER:
|
||||||
return tr("Tier");
|
return tr("Tier");
|
||||||
case COL_PROTOCOL:
|
case COL_PROTOCOL:
|
||||||
return tr("Protocol");
|
return tr("BT Protocol");
|
||||||
case COL_STATUS:
|
case COL_STATUS:
|
||||||
return tr("Status");
|
return tr("Status");
|
||||||
case COL_PEERS:
|
case COL_PEERS:
|
||||||
|
@ -506,9 +506,9 @@ QVariant TrackerListModel::headerData(const int section, const Qt::Orientation o
|
||||||
case COL_MSG:
|
case COL_MSG:
|
||||||
return tr("Message");
|
return tr("Message");
|
||||||
case COL_NEXT_ANNOUNCE:
|
case COL_NEXT_ANNOUNCE:
|
||||||
return tr("Next announce");
|
return tr("Next Announce");
|
||||||
case COL_MIN_ANNOUNCE:
|
case COL_MIN_ANNOUNCE:
|
||||||
return tr("Min announce");
|
return tr("Min Announce");
|
||||||
default:
|
default:
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
@ -585,7 +585,7 @@ QVariant TrackerListModel::data(const QModelIndex &index, const int role) const
|
||||||
case COL_TIER:
|
case COL_TIER:
|
||||||
return (isEndpoint || (index.row() < STICKY_ROW_COUNT)) ? QString() : QString::number(itemPtr->tier);
|
return (isEndpoint || (index.row() < STICKY_ROW_COUNT)) ? QString() : QString::number(itemPtr->tier);
|
||||||
case COL_PROTOCOL:
|
case COL_PROTOCOL:
|
||||||
return isEndpoint ? tr("v%1").arg(itemPtr->btVersion) : QString();
|
return isEndpoint ? (u'v' + QString::number(itemPtr->btVersion)) : QString();
|
||||||
case COL_STATUS:
|
case COL_STATUS:
|
||||||
if (isEndpoint)
|
if (isEndpoint)
|
||||||
return toString(itemPtr->status);
|
return toString(itemPtr->status);
|
||||||
|
|
Loading…
Reference in a new issue