mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Revise string literal usage
This commit covers src/gui folder. PR #16757.
This commit is contained in:
parent
746fe7ba09
commit
75c93d72be
36 changed files with 275 additions and 280 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue