22 lines
434 B
C++
22 lines
434 B
C++
#ifndef WEBPAGE_H
|
|
#define WEBPAGE_H
|
|
|
|
#include <QWebPage>
|
|
|
|
|
|
class WebPage : public QWebPage {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
// Constructors and destructors.
|
|
explicit WebPage(QObject *parent = 0);
|
|
virtual ~WebPage();
|
|
|
|
protected:
|
|
bool acceptNavigationRequest(QWebFrame *frame,
|
|
const QNetworkRequest &request,
|
|
NavigationType type);
|
|
};
|
|
|
|
#endif // BASEWEBPAGE_H
|