Enabled webview developer inspector to fix the graph view

This commit is contained in:
Hugo Teso 2017-04-03 13:36:51 +02:00
parent ea6789af54
commit a8f644dcf4
2 changed files with 2 additions and 1 deletions

View File

@ -68,6 +68,7 @@ MemoryWidget::MemoryWidget(MainWindow *main, QWidget *parent) :
// Hide graph webview scrollbars
ui->graphWebView->page()->mainFrame()->setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAlwaysOff);
ui->graphWebView->page()->mainFrame()->setScrollBarPolicy(Qt::Horizontal, Qt::ScrollBarAlwaysOff);
QWebSettings::globalSettings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
// Add margin to function name line edit
ui->fcnNameEdit->setTextMargins(5, 0, 0, 0);

View File

@ -1233,7 +1233,7 @@ p, li { white-space: pre-wrap; }
<item>
<widget class="QWebView" name="graphWebView" native="true">
<property name="contextMenuPolicy">
<enum>Qt::NoContextMenu</enum>
<enum>Qt::DefaultContextMenu</enum>
</property>
<property name="url" stdset="0">
<url>