-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suppress QWebEngineContext info, suppress JS console logs
- Loading branch information
1 parent
ea4c5d5
commit de2e713
Showing
6 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
#include "monaco_editor_page.h" | ||
|
||
#include <QWebEnginePage> | ||
|
||
MonacoEditorPage::MonacoEditorPage(QObject *parent) : QWebEnginePage(parent) {} | ||
|
||
void MonacoEditorPage::javaScriptConsoleMessage( | ||
JavaScriptConsoleMessageLevel level, const QString &message, int lineNumber, | ||
const QString &sourceID) { | ||
// do nothing, all messages from JS console are suppressed! | ||
// qDebug() << message; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ifndef MONACO_EDITOR_PAGE_H | ||
#define MONACO_EDITOR_PAGE_H | ||
|
||
#include <QWebEnginePage> | ||
|
||
class MonacoEditorPage : public QWebEnginePage { | ||
Q_OBJECT | ||
public: | ||
MonacoEditorPage(QObject *parent = 0); | ||
virtual void javaScriptConsoleMessage(JavaScriptConsoleMessageLevel level, | ||
const QString &message, int lineNumber, | ||
const QString &sourceID); | ||
}; | ||
|
||
#endif // MONACO_EDITOR_PAGE_H |