mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Fix coding style
This commit is contained in:
parent
6e924b668e
commit
61aa4d9f1c
1 changed files with 15 additions and 17 deletions
|
@ -112,7 +112,6 @@ QString TorrentContentModelItem::displayData(const int column) const
|
||||||
case COL_NAME:
|
case COL_NAME:
|
||||||
return m_name;
|
return m_name;
|
||||||
case COL_PRIO:
|
case COL_PRIO:
|
||||||
{
|
|
||||||
switch (m_priority)
|
switch (m_priority)
|
||||||
{
|
{
|
||||||
case BitTorrent::DownloadPriority::Mixed:
|
case BitTorrent::DownloadPriority::Mixed:
|
||||||
|
@ -126,7 +125,6 @@ QString TorrentContentModelItem::displayData(const int column) const
|
||||||
default:
|
default:
|
||||||
return tr("Normal", "Normal (priority)");
|
return tr("Normal", "Normal (priority)");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
case COL_PROGRESS:
|
case COL_PROGRESS:
|
||||||
{
|
{
|
||||||
const qreal progress = m_progress * 100;
|
const qreal progress = m_progress * 100;
|
||||||
|
@ -147,7 +145,7 @@ QString TorrentContentModelItem::displayData(const int column) const
|
||||||
const QString value = (avail >= 1)
|
const QString value = (avail >= 1)
|
||||||
? QString::fromLatin1("100")
|
? QString::fromLatin1("100")
|
||||||
: Utils::String::fromDouble((avail * 100), 1);
|
: Utils::String::fromDouble((avail * 100), 1);
|
||||||
return QString {value + C_THIN_SPACE + QLatin1Char('%')};
|
return {value + C_THIN_SPACE + QLatin1Char('%')};
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
Q_ASSERT(false);
|
Q_ASSERT(false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue