Browse Source

Merge pull request #1067 from debris/chromium

added QtWebEngine::initialize()
cl-refactor
Gav Wood 10 years ago
parent
commit
e1ceb312a2
  1. 3
      alethzero/MainWin.cpp

3
alethzero/MainWin.cpp

@ -112,6 +112,7 @@ Main::Main(QWidget *parent) :
{
setWindowFlags(Qt::Window);
ui->setupUi(this);
QtWebEngine::initialize();
g_logPost = [=](string const& s, char const* c)
{
simpleDebugOut(s, c);
@ -171,7 +172,7 @@ Main::Main(QWidget *parent) :
ui->tabWidget->setTabText(0, ui->webView->title());
});
ui->webView->page()->settings()->setAttribute(QWebEngineSettings::DeveloperExtrasEnabled, true);
// ui->webView->page()->settings()->setAttribute(QWebEngineSettings::DeveloperExtrasEnabled, true);
// QWebEngineInspector* inspector = new QWebEngineInspector();
// inspector->setPage(page);
readSettings();

Loading…
Cancel
Save