mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
Remove direct bitcoin calls from qt/utilitydialog.cpp
This commit is contained in:
committed by
John Newbery
parent
3d619e9d36
commit
c2f672fb19
@@ -19,6 +19,7 @@
|
||||
|
||||
#include <clientversion.h>
|
||||
#include <init.h>
|
||||
#include <interface/node.h>
|
||||
#include <util.h>
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -31,7 +32,7 @@
|
||||
#include <QVBoxLayout>
|
||||
|
||||
/** "Help message" or "About" dialog box */
|
||||
HelpMessageDialog::HelpMessageDialog(QWidget *parent, bool about) :
|
||||
HelpMessageDialog::HelpMessageDialog(interface::Node& node, QWidget *parent, bool about) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::HelpMessageDialog)
|
||||
{
|
||||
@@ -77,7 +78,7 @@ HelpMessageDialog::HelpMessageDialog(QWidget *parent, bool about) :
|
||||
cursor.insertText(header);
|
||||
cursor.insertBlock();
|
||||
|
||||
std::string strUsage = HelpMessage(HelpMessageMode::BITCOIN_QT);
|
||||
std::string strUsage = node.helpMessage(HelpMessageMode::BITCOIN_QT);
|
||||
const bool showDebug = gArgs.GetBoolArg("-help-debug", false);
|
||||
strUsage += HelpMessageGroup(tr("UI Options:").toStdString());
|
||||
if (showDebug) {
|
||||
|
||||
Reference in New Issue
Block a user