mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
Simplify code
Don't use replacement placeholder and use string append which is faster.
This commit is contained in:
parent
0e0b8d1027
commit
3aadb63d80
1 changed files with 3 additions and 2 deletions
|
@ -52,8 +52,9 @@ namespace
|
|||
|
||||
QString logText(const QModelIndex &index)
|
||||
{
|
||||
return u"%1%2%3"_qs.arg(index.data(BaseLogModel::TimeRole).toString(), SEPARATOR
|
||||
, index.data(BaseLogModel::MessageRole).toString());
|
||||
return index.data(BaseLogModel::TimeRole).toString()
|
||||
+ SEPARATOR
|
||||
+ index.data(BaseLogModel::MessageRole).toString();
|
||||
}
|
||||
|
||||
class LogItemDelegate final : public QStyledItemDelegate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue