mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 00:47:21 -06:00
Revise string literal usage
This commit covers src/gui folder. PR #16757.
This commit is contained in:
@@ -57,7 +57,7 @@ void PreviewListDelegate::paint(QPainter *painter, const QStyleOptionViewItem &o
|
||||
{
|
||||
const qreal progress = (index.data().toReal() * 100);
|
||||
const QString text = (progress >= 100)
|
||||
? QString::fromLatin1("100%")
|
||||
? u"100%"_qs
|
||||
: (Utils::String::fromDouble(progress, 1) + u'%');
|
||||
|
||||
m_progressBarPainter.paint(painter, option, text, static_cast<int>(progress));
|
||||
|
||||
Reference in New Issue
Block a user