Browse Source

Simplify code

Don't use replacement placeholder and use string append which is faster.
adaptive-webui-19844
Chocobo1 2 years ago
parent
commit
3aadb63d80
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 5
      src/gui/log/loglistview.cpp

5
src/gui/log/loglistview.cpp

@ -52,8 +52,9 @@ namespace @@ -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…
Cancel
Save