diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2018-10-06 00:05:51 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2018-10-08 13:33:29 +0300 |
commit | 2ab9140c92c7ffd950f9ea6e1e78107a217bb336 (patch) | |
tree | b1de1da187cb3828e3c09e6cdf6afac5679e0f00 | |
parent | 3045704502e8a241b60b847fd52fcbed3129a2e4 (diff) |
Add tooltips for both datadir and blocksdir
-rw-r--r-- | src/qt/forms/debugwindow.ui | 6 | ||||
-rw-r--r-- | src/qt/rpcconsole.cpp | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/qt/forms/debugwindow.ui b/src/qt/forms/debugwindow.ui index 322a84ee92..dca16d6f78 100644 --- a/src/qt/forms/debugwindow.ui +++ b/src/qt/forms/debugwindow.ui @@ -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> @@ -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> diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 5bf9893141..7ec4feabfb 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -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()) { |