mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
Converts the string "Seeded for" to lowercase
This commit is contained in:
parent
e33570625f
commit
69812bbf18
@ -360,7 +360,7 @@ void PropertiesWidget::loadDynamicData() {
|
|||||||
lbl_dllimit->setText(m_torrent->downloadLimit() <= 0 ? QString::fromUtf8(C_INFINITY) : Utils::Misc::friendlyUnit(m_torrent->downloadLimit())+tr("/s", "/second (i.e. per second)"));
|
lbl_dllimit->setText(m_torrent->downloadLimit() <= 0 ? QString::fromUtf8(C_INFINITY) : Utils::Misc::friendlyUnit(m_torrent->downloadLimit())+tr("/s", "/second (i.e. per second)"));
|
||||||
QString elapsed_txt = Utils::Misc::userFriendlyDuration(m_torrent->activeTime());
|
QString elapsed_txt = Utils::Misc::userFriendlyDuration(m_torrent->activeTime());
|
||||||
if (m_torrent->isSeed())
|
if (m_torrent->isSeed())
|
||||||
elapsed_txt += " ("+tr("Seeded for %1", "e.g. Seeded for 3m10s").arg(Utils::Misc::userFriendlyDuration(m_torrent->seedingTime()))+")";
|
elapsed_txt += " ("+tr("seeded for %1", "e.g. seeded for 3m10s").arg(Utils::Misc::userFriendlyDuration(m_torrent->seedingTime()))+")";
|
||||||
|
|
||||||
lbl_elapsed->setText(elapsed_txt);
|
lbl_elapsed->setText(elapsed_txt);
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ void TransferListDelegate::paint(QPainter * painter, const QStyleOptionViewItem
|
|||||||
QString txt = Utils::Misc::userFriendlyDuration(index.data().toLongLong());
|
QString txt = Utils::Misc::userFriendlyDuration(index.data().toLongLong());
|
||||||
qlonglong seeding_time = index.data(Qt::UserRole).toLongLong();
|
qlonglong seeding_time = index.data(Qt::UserRole).toLongLong();
|
||||||
if (seeding_time > 0)
|
if (seeding_time > 0)
|
||||||
txt += " ("+tr("Seeded for %1", "e.g. Seeded for 3m10s").arg(Utils::Misc::userFriendlyDuration(seeding_time))+")";
|
txt += " ("+tr("seeded for %1", "e.g. seeded for 3m10s").arg(Utils::Misc::userFriendlyDuration(seeding_time))+")";
|
||||||
QItemDelegate::drawDisplay(painter, opt, opt.rect, txt);
|
QItemDelegate::drawDisplay(painter, opt, opt.rect, txt);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user