31 QDialog(parent,
GUIUtil::dialog_flags),
51 ui->aboutMessage->setTextFormat(Qt::RichText);
52 ui->scrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
55 ui->aboutMessage->setWordWrap(
true);
56 ui->helpMessage->setVisible(
false);
59 QString header =
"The bitcoin-qt application provides a graphical interface for interacting with " CLIENT_NAME ".\n\n"
60 "It combines the core functionalities of bitcoind with a user-friendly interface for wallet management, transaction history, and network statistics.\n\n"
61 "It is suitable for users who prefer a graphical over a command-line interface.\n\n"
62 "You can optionally specify a payment [URI], in e.g. the BIP21 URI format.\n\n"
63 "Usage: bitcoin-qt [options] [URI]\n\n";
65 cursor.insertText(version);
75 tf.setBorderStyle(QTextFrameFormat::BorderStyle_None);
80 tf.setColumnWidthConstraints(
widths);
83 bold.setFontWeight(QFont::Bold);
86 if (line.startsWith(
" -"))
88 cursor.currentTable()->appendRows(1);
89 cursor.movePosition(QTextCursor::PreviousCell);
90 cursor.movePosition(QTextCursor::NextRow);
91 cursor.insertText(line.trimmed());
92 cursor.movePosition(QTextCursor::NextCell);
93 }
else if (line.startsWith(
" ")) {
94 cursor.insertText(line.trimmed()+
' ');
95 }
else if (line.size() > 0) {
98 cursor.currentTable()->appendRows(1);
99 cursor.movePosition(QTextCursor::Down);
105 ui->helpMessage->moveCursor(QTextCursor::Start);
106 ui->scrollArea->setVisible(
false);
107 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.