|
@ -153,14 +153,14 @@ Main::Main(QWidget *parent) : |
|
|
m_server = unique_ptr<WebThreeStubServer>(new WebThreeStubServer(m_qwebConnector, *web3(), keysAsVector(m_myKeys))); |
|
|
m_server = unique_ptr<WebThreeStubServer>(new WebThreeStubServer(m_qwebConnector, *web3(), keysAsVector(m_myKeys))); |
|
|
m_server->setIdentities(keysAsVector(owned())); |
|
|
m_server->setIdentities(keysAsVector(owned())); |
|
|
m_server->StartListening(); |
|
|
m_server->StartListening(); |
|
|
|
|
|
|
|
|
connect(ui->webView, &QWebView::loadStarted, [this]() |
|
|
connect(ui->webView, &QWebView::loadStarted, [this]() |
|
|
{ |
|
|
{ |
|
|
// NOTE: no need to delete as QETH_INSTALL_JS_NAMESPACE adopts it.
|
|
|
// NOTE: no need to delete as QETH_INSTALL_JS_NAMESPACE adopts it.
|
|
|
m_qweb = new QWebThree(this); |
|
|
m_qweb = new QWebThree(this); |
|
|
auto qweb = m_qweb; |
|
|
auto qweb = m_qweb; |
|
|
m_qwebConnector->setQWeb(qweb); |
|
|
m_qwebConnector->setQWeb(qweb); |
|
|
|
|
|
|
|
|
QWebSettings::globalSettings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true); |
|
|
QWebSettings::globalSettings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true); |
|
|
QWebFrame* f = ui->webView->page()->mainFrame(); |
|
|
QWebFrame* f = ui->webView->page()->mainFrame(); |
|
|
f->disconnect(SIGNAL(javaScriptWindowObjectCleared())); |
|
|
f->disconnect(SIGNAL(javaScriptWindowObjectCleared())); |
|
@ -179,9 +179,7 @@ Main::Main(QWidget *parent) : |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
readSettings(); |
|
|
readSettings(); |
|
|
|
|
|
|
|
|
installWatches(); |
|
|
installWatches(); |
|
|
|
|
|
|
|
|
startTimer(100); |
|
|
startTimer(100); |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|