mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 01:03:08 -07:00
Use helper function to construct QString
This is shorter and avoids the need of 2 constructors.
This commit is contained in:
parent
6c307774f1
commit
b7e7d8019c
7 changed files with 9 additions and 9 deletions
|
@ -292,7 +292,7 @@ QString TransferListModel::displayValue(const BitTorrent::TorrentHandle *torrent
|
|||
{
|
||||
progress *= 100;
|
||||
return (static_cast<int>(progress) == 100)
|
||||
? QString {QLatin1String {"100%"}}
|
||||
? QString::fromLatin1("100%")
|
||||
: Utils::String::fromDouble(progress, 1) + '%';
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue