46 QRegExp uri(
"<(.*)>", Qt::CaseSensitive, QRegExp::RegExp2);
52 ui->aboutMessage->setTextFormat(Qt::RichText);
53 ui->scrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
54 text = version +
"\n" +
57 ui->aboutMessage->setWordWrap(
true);
58 ui->helpMessage->setVisible(
false);
62 "Usage: bitcoin-qt [command-line options] \n";
64 cursor.insertText(version);
74 tf.setBorderStyle(QTextFrameFormat::BorderStyle_None);
79 tf.setColumnWidthConstraints(
widths);
82 bold.setFontWeight(QFont::Bold);
85 if (line.startsWith(
" -")) {
86 cursor.currentTable()->appendRows(1);
87 cursor.movePosition(QTextCursor::PreviousCell);
88 cursor.movePosition(QTextCursor::NextRow);
89 cursor.insertText(line.trimmed());
90 cursor.movePosition(QTextCursor::NextCell);
91 }
else if (line.startsWith(
" ")) {
92 cursor.insertText(line.trimmed() +
' ');
93 }
else if (line.size() > 0) {
95 if (
cursor.currentTable()) {
96 cursor.currentTable()->appendRows(1);
98 cursor.movePosition(QTextCursor::Down);
104 ui->helpMessage->moveCursor(QTextCursor::Start);
105 ui->scrollArea->setVisible(
false);
106 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.