| 35 | WebInspectorWidget::~WebInspectorWidget() = default; |
| 36 | |
| 37 | void WebInspectorWidget::webPageSelected(int index) |
| 38 | { |
| 39 | Q_UNUSED(index); |
| 40 | const QUrl serverUrl = Endpoint::instance()->serverAddress(); |
| 41 | if (serverUrl.scheme() == QLatin1String("tcp")) { |
| 42 | QUrl inspectorUrl; |
| 43 | inspectorUrl.setScheme(QStringLiteral("http")); |
| 44 | inspectorUrl.setHost(serverUrl.host()); |
| 45 | inspectorUrl.setPort(Endpoint::defaultPort() + 1); |
| 46 | ui->webView->setUrl(inspectorUrl); |
| 47 | } |
| 48 | } |
nothing calls this directly
no test coverage detected