mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Use helper function to construct QString
This is shorter and avoids the need of 2 constructors.
This commit is contained in:
@@ -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) + '%';
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user