| 182 | } |
| 183 | |
| 184 | void Translator::showDebugView() |
| 185 | { |
| 186 | if (!debugView_) |
| 187 | debugView_ = std::make_unique<QWebEngineView>(); |
| 188 | debugView_->load( |
| 189 | QUrl::fromUserInput("http://localhost:" + QString::number(debugPort_))); |
| 190 | debugView_->show(); |
| 191 | debugView_->activateWindow(); |
| 192 | } |
| 193 | |
| 194 | WebPage *Translator::currentPage() const |
| 195 | { |