mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 12:48:04 -06:00
Rename literal operator
Qt 6.4 introduced `QString operator""_s()` and the previous `""_qs` is deprecated since Qt 6.8.
This commit is contained in:
@@ -122,7 +122,7 @@ QString TorrentContentModelItem::displayData(const int column) const
|
||||
}
|
||||
case COL_PROGRESS:
|
||||
return (m_progress >= 1)
|
||||
? u"100%"_qs
|
||||
? u"100%"_s
|
||||
: (Utils::String::fromDouble((m_progress * 100), 1) + u'%');
|
||||
case COL_SIZE:
|
||||
return Utils::Misc::friendlyUnit(m_size);
|
||||
@@ -135,7 +135,7 @@ QString TorrentContentModelItem::displayData(const int column) const
|
||||
return tr("N/A");
|
||||
|
||||
const QString value = (avail >= 1)
|
||||
? u"100"_qs
|
||||
? u"100"_s
|
||||
: Utils::String::fromDouble((avail * 100), 1);
|
||||
return (value + C_THIN_SPACE + u'%');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user