| 4 | #include <QGridLayout> |
| 5 | |
| 6 | WebDialog::WebDialog(bool isPrivate, QWidget *parent) : |
| 7 | QWidget(parent), |
| 8 | m_view(new WebView(isPrivate, this)) |
| 9 | { |
| 10 | setAttribute(Qt::WA_DeleteOnClose); |
| 11 | setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); |
| 12 | |
| 13 | QGridLayout *grid = new QGridLayout; |
| 14 | grid->setMargin(0); |
| 15 | setLayout(grid); |
| 16 | |
| 17 | grid->addWidget(m_view); |
| 18 | m_view->show(); |
| 19 | m_view->setFocus(); |
| 20 | |
| 21 | connect(m_view, &WebView::titleChanged, this, &QWidget::setWindowTitle); |
| 22 | } |
| 23 | |
| 24 | QWebEngineView *WebDialog::getView() const |
| 25 | { |
nothing calls this directly
no outgoing calls
no test coverage detected