Skip to content

Commit

Permalink
Add tooltips for both datadir and blocksdir
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Oct 8, 2018
1 parent 3045704 commit 2ab9140
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/qt/forms/debugwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@
<property name="cursor">
<cursorShape>IBeamCursor</cursorShape>
</property>
<property name="toolTip">
<string>To specify a non-default location of the data directory use the '%1' option.</string>
</property>
<property name="text">
<string>N/A</string>
</property>
Expand All @@ -153,6 +156,9 @@
<property name="cursor">
<cursorShape>IBeamCursor</cursorShape>
</property>
<property name="toolTip">
<string>To specify a non-default location of the blocks directory use the '%1' option.</string>
</property>
<property name="text">
<string>N/A</string>
</property>
Expand Down
3 changes: 3 additions & 0 deletions src/qt/rpcconsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,9 @@ RPCConsole::RPCConsole(interfaces::Node& node, const PlatformStyle *_platformSty
move(QApplication::desktop()->availableGeometry().center() - frameGeometry().center());
}

QChar nonbreaking_hyphen(8209);
ui->dataDir->setToolTip(ui->dataDir->toolTip().arg(QString(nonbreaking_hyphen) + "datadir"));
ui->blocksDir->setToolTip(ui->blocksDir->toolTip().arg(QString(nonbreaking_hyphen) + "blocksdir"));
ui->openDebugLogfileButton->setToolTip(ui->openDebugLogfileButton->toolTip().arg(tr(PACKAGE_NAME)));

if (platformStyle->getImagesOnButtons()) {
Expand Down

0 comments on commit 2ab9140

Please sign in to comment.