effectprocess 추가
git-svn-id: svn://192.168.0.12/source@306 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "swebpage.h"
|
||||
#include <iostream>
|
||||
|
||||
#include <QDebug>
|
||||
SWebPage::SWebPage(QObject *parent): QWebPage(parent)
|
||||
{
|
||||
|
||||
@@ -8,5 +8,33 @@ SWebPage::SWebPage(QObject *parent): QWebPage(parent)
|
||||
|
||||
void SWebPage::javaScriptAlert(QWebFrame *frame, const QString &msg)
|
||||
{
|
||||
qDebug() << "alert";
|
||||
emit signalAlert(msg);
|
||||
}
|
||||
|
||||
bool SWebPage::javaScriptConfirm(QWebFrame *frame, const QString &msg)
|
||||
{
|
||||
qDebug() << "confirm";
|
||||
emit signalAlert(msg);
|
||||
return false;
|
||||
}
|
||||
|
||||
void SWebPage::javaScriptConsoleMessage(const QString & message, int lineNumber, const QString & sourceID)
|
||||
{
|
||||
qDebug() << "console";
|
||||
emit signalAlert(message);
|
||||
}
|
||||
|
||||
bool SWebPage::javaScriptPrompt(QWebFrame * frame, const QString & msg, const QString & defaultValue, QString * result)
|
||||
{
|
||||
qDebug() << "prompt";
|
||||
emit signalAlert(msg);
|
||||
return false;
|
||||
}
|
||||
|
||||
QWebPage * SWebPage::createWindow(WebWindowType type)
|
||||
{
|
||||
qDebug() << "createwindow";
|
||||
emit signalAlert("???");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user