12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- /**
- * Copyright (c) 2011 Nokia Corporation.
- */
- #ifndef WEBWIDGET_H
- #define WEBWIDGET_H
- // Qt includes
- #include <QGraphicsView>
- #include <QGraphicsWebView>
- #include <QUrl>
- #include <QWebPage>
- // Forward declarations
- class QResizeEvent;
- class QWebFrame;
- class WebWidget : public QGraphicsView
- {
- Q_OBJECT
- public:
- WebWidget();
- virtual ~WebWidget();
- public:
- void loadUrl(const QUrl &url);
- protected: // From QGraphicsView
- void resizeEvent(QResizeEvent *event);
- #if QTWEBKIT_VERSION >= QTWEBKIT_VERSION_CHECK(2, 1, 0)
- public slots:
- void handlePermissionRequest(QWebFrame *frame, QWebPage::Feature feature);
- #endif
- protected: // Data
- QGraphicsWebView m_webView;
- };
- #endif // WEBWIDGET_H
- // End of file.
|