32 QDialog(parent,
GUIUtil::dialog_flags),
52 ui->aboutMessage->setTextFormat(Qt::RichText);
53 ui->scrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
56 ui->aboutMessage->setWordWrap(
true);
57 ui->helpMessage->setVisible(
false);
60 QString header =
"The bitcoin-qt application provides a graphical interface for interacting with " CLIENT_NAME ".\n\n"
61 "It combines the core functionalities of bitcoind with a user-friendly interface for wallet management, transaction history, and network statistics.\n\n"
62 "It is suitable for users who prefer a graphical over a command-line interface.\n\n"
63 "You can optionally specify a payment [URI], in e.g. the BIP21 URI format.\n\n"
64 "Usage: bitcoin-qt [options] [URI]\n\n";
66 cursor.insertText(version);
76 tf.setBorderStyle(QTextFrameFormat::BorderStyle_None);
81 tf.setColumnWidthConstraints(
widths);
84 bold.setFontWeight(QFont::Bold);
87 if (line.startsWith(
" -"))
89 cursor.currentTable()->appendRows(1);
90 cursor.movePosition(QTextCursor::PreviousCell);
91 cursor.movePosition(QTextCursor::NextRow);
92 cursor.insertText(line.trimmed());
93 cursor.movePosition(QTextCursor::NextCell);
94 }
else if (line.startsWith(
" ")) {
95 cursor.insertText(line.trimmed()+
' ');
96 }
else if (line.size() > 0) {
99 cursor.currentTable()->appendRows(1);
100 cursor.movePosition(QTextCursor::Down);
106 ui->helpMessage->moveCursor(QTextCursor::Start);
107 ui->scrollArea->setVisible(
false);
108 ui->aboutLogo->setVisible(
false);
std::string FormatParagraph(std::string_view in, size_t width, size_t indent)
Format a paragraph of text to a fixed width, adding spaces for indentation to any added line.