36
36
#include < QDateTime>
37
37
#include < QFont>
38
38
#include < QKeyEvent>
39
+ #include < QLatin1String>
39
40
#include < QMenu>
40
41
#include < QMessageBox>
41
42
#include < QScreen>
@@ -52,6 +53,9 @@ const int INITIAL_TRAFFIC_GRAPH_MINS = 30;
52
53
const QSize FONT_RANGE (4 , 40 );
53
54
const char fontSizeSettingsKey[] = " consoleFontSize" ;
54
55
56
+ const QLatin1String COLON_SPACE{" : " };
57
+ const QLatin1String SPACE{" " };
58
+
55
59
const struct {
56
60
const char *url;
57
61
const char *source;
@@ -462,15 +466,17 @@ RPCConsole::RPCConsole(interfaces::Node& node, const PlatformStyle *_platformSty
462
466
463
467
constexpr QChar nonbreaking_hyphen (8209 );
464
468
const std::vector<QString> CONNECTION_TYPE_DOC{
465
- tr (" Inbound: initiated by peer" ),
466
- tr (" Outbound Full Relay: default" ),
467
- tr (" Outbound Block Relay: does not relay transactions or addresses" ),
468
- tr (" Outbound Manual: added using RPC %1 or %2/%3 configuration options" )
469
+ // : The connection direction (Inbound/Outbound) is also used in ConnectionTypeToQString() and PeerTableModel::data().
470
+ // : The connection types (Full Relay, Block Relay, Manual, Feeler, Address Fetch) are also used in ConnectionTypeToQString().
471
+ tr (" Inbound" ) + COLON_SPACE + tr (" initiated by peer" ),
472
+ tr (" Outbound" ) + SPACE + tr (" Full Relay" ) + COLON_SPACE + tr (" default" ),
473
+ tr (" Outbound" ) + SPACE + tr (" Block Relay" ) + COLON_SPACE + tr (" does not relay transactions or addresses" ),
474
+ tr (" Outbound" ) + SPACE + tr (" Manual" ) + COLON_SPACE + tr (" added using RPC %1 or %2/%3 configuration options" )
469
475
.arg (" addnode" )
470
476
.arg (QString (nonbreaking_hyphen) + " addnode" )
471
477
.arg (QString (nonbreaking_hyphen) + " connect" ),
472
- tr (" Outbound Feeler: short-lived, for testing addresses" ),
473
- tr (" Outbound Address Fetch: short-lived, for soliciting addresses" )};
478
+ tr (" Outbound" ) + SPACE + tr ( " Feeler" ) + COLON_SPACE + tr ( " short-lived, for testing addresses" ),
479
+ tr (" Outbound" ) + SPACE + tr ( " Address Fetch" ) + COLON_SPACE + tr ( " short-lived, for soliciting addresses" )};
474
480
const QString list{" <ul><li>" + Join (CONNECTION_TYPE_DOC, QString (" </li><li>" )) + " </li></ul>" };
475
481
ui->peerConnectionTypeLabel ->setToolTip (ui->peerConnectionTypeLabel ->toolTip ().arg (list));
476
482
const QString hb_list{" <ul><li>\" "
0 commit comments