";
44 | aboutHtml += tr("
Application version %1
").arg(Qb::VERSION);
45 | aboutHtml += tr("QtWebEngine version %1
").arg(qVersion());
46 | aboutHtml += QString("
© %1 %2
").arg(Qb::COPYRIGHT, Qb::AUTHOR);
47 | aboutHtml += QString("%1
").arg(Qb::WWWADDRESS);
48 | aboutHtml += "
" + BrowserSettings::instance()->defaultUserAgent() + "
";
49 | aboutHtml += "
" + QString("Graphics API: ") + gApiName + "
";
50 | if(!QQuickWindow::sceneGraphBackend().isEmpty()) {
51 | aboutHtml += "
" + QString("Graphics Backend: ") + QQuickWindow::sceneGraphBackend() + "
";
52 | }
53 | aboutHtml += "
";
54 |
55 | auto label = new QLabel(this);
56 | label->setWordWrap(true);
57 | label->setText(aboutHtml);
58 | layout->addWidget(label, 0, Qt::AlignHCenter);
59 |
60 | QPushButton *closeButton = new QPushButton("Close", this);
61 | closeButton->setFixedWidth(100);
62 |
63 | connect(closeButton, &QAbstractButton::clicked, this, &QWidget::close);
64 | layout->addWidget(closeButton, 0, Qt::AlignHCenter);
65 |
66 | setLayout(layout);
67 | }
68 |
--------------------------------------------------------------------------------
/Browser/completerheader.cpp:
--------------------------------------------------------------------------------
1 | #include "completerheader.h"
2 | #include