mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
qt, build: Optimize string concatenation
The defined QT_USE_QSTRINGBUILDER macro means using the QStringBuilder for efficient string concatenation in all Qt code by default.
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
#include <QDateTime>
|
||||
#include <QDebug>
|
||||
#include <QIcon>
|
||||
#include <QLatin1Char>
|
||||
#include <QLatin1String>
|
||||
#include <QList>
|
||||
|
||||
|
||||
@@ -409,9 +411,9 @@ QVariant TransactionTableModel::txAddressDecoration(const TransactionRecord *wtx
|
||||
QString TransactionTableModel::formatTxToAddress(const TransactionRecord *wtx, bool tooltip) const
|
||||
{
|
||||
QString watchAddress;
|
||||
if (tooltip) {
|
||||
if (tooltip && wtx->involvesWatchAddress) {
|
||||
// Mark transactions involving watch-only addresses by adding " (watch-only)"
|
||||
watchAddress = wtx->involvesWatchAddress ? QString(" (") + tr("watch-only") + QString(")") : "";
|
||||
watchAddress = QLatin1String(" (") + tr("watch-only") + QLatin1Char(')');
|
||||
}
|
||||
|
||||
switch(wtx->type)
|
||||
|
||||
Reference in New Issue
Block a user