2011-08-26 15:18:04 +00:00
|
|
|
#include <iostream>
|
2011-08-01 17:09:08 +00:00
|
|
|
#include "Page.h"
|
|
|
|
|
2011-10-25 19:41:22 +00:00
|
|
|
Page::Page() : QWebPage() {}
|
2011-08-01 17:09:08 +00:00
|
|
|
|
2011-10-25 19:41:22 +00:00
|
|
|
void Page::javaScriptConsoleMessage(const QString & message, int lineNumber, const QString & sourceID) {
|
|
|
|
emit handleError(message, lineNumber, sourceID);
|
2011-10-25 15:25:28 +00:00
|
|
|
}
|
2011-10-26 02:22:29 +00:00
|
|
|
|
|
|
|
void Page::javaScriptAlert(QWebFrame *, const QString &) {}
|
2012-01-09 16:09:34 +00:00
|
|
|
bool Page::javaScriptConfirm(QWebFrame *, const QString &) { return false; }
|
|
|
|
bool Page::javaScriptPrompt(QWebFrame *, const QString &, const QString &, QString *) { return false; }
|