Skip to content

Commit 09f4414

Browse files
committed
gui: improve markup handling of connection type tooltip
1 parent 25203b9 commit 09f4414

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

src/qt/forms/debugwindow.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@
10791079
<item row="1" column="0">
10801080
<widget class="QLabel" name="peerConnectionTypeLabel">
10811081
<property name="toolTip">
1082-
<string>The type of peer connection:&lt;ul&gt;&lt;li&gt;Inbound: initiated by peer&lt;/li&gt;&lt;li&gt;Outbound Full Relay: default&lt;/li&gt;&lt;li&gt;Outbound Block Relay: does not relay transactions or addresses&lt;/li&gt;&lt;li&gt;Outbound Manual: added using RPC %1 or %2/%3 configuration options&lt;/li&gt;&lt;li&gt;Outbound Feeler: short-lived, for testing addresses&lt;/li&gt;&lt;li&gt;Outbound Address Fetch: short-lived, for soliciting addresses&lt;/li&gt;&lt;/ul&gt;</string>
1082+
<string>The type of peer connection: %1</string>
10831083
</property>
10841084
<property name="text">
10851085
<string>Connection Type</string>

src/qt/rpcconsole.cpp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,19 @@ RPCConsole::RPCConsole(interfaces::Node& node, const PlatformStyle *_platformSty
463463
ui->dataDir->setToolTip(ui->dataDir->toolTip().arg(QString(nonbreaking_hyphen) + "datadir"));
464464
ui->blocksDir->setToolTip(ui->blocksDir->toolTip().arg(QString(nonbreaking_hyphen) + "blocksdir"));
465465
ui->openDebugLogfileButton->setToolTip(ui->openDebugLogfileButton->toolTip().arg(PACKAGE_NAME));
466-
ui->peerConnectionTypeLabel->setToolTip(ui->peerConnectionTypeLabel->toolTip().arg("addnode").arg(QString(nonbreaking_hyphen) + "addnode").arg(QString(nonbreaking_hyphen) + "connect"));
466+
ui->peerConnectionTypeLabel->setToolTip(
467+
ui->peerConnectionTypeLabel->toolTip()
468+
.arg(tr("<ul>"
469+
"<li>Inbound Relay: initiated by peer</li>"
470+
"<li>Outbound Full Relay: default</li>"
471+
"<li>Outbound Block Relay: does not relay transactions or addresses</li>"
472+
"<li>Outbound Manual: added using RPC %1 or %2/%3 configuration options</li>"
473+
"<li>Outbound Feeler: short-lived, for testing addresses</li>"
474+
"<li>Outbound Address Fetch: short-lived, for soliciting addresses</li>"
475+
"</ul>")
476+
.arg("addnode")
477+
.arg(QString(nonbreaking_hyphen) + "addnode")
478+
.arg(QString(nonbreaking_hyphen) + "connect")));
467479

468480
if (platformStyle->getImagesOnButtons()) {
469481
ui->openDebugLogfileButton->setIcon(platformStyle->SingleColorIcon(":/icons/export"));

0 commit comments

Comments
 (0)