summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/gui/graphicsview/functional/GraphicsViewBenchmark/widgets/webview.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/gui/graphicsview/functional/GraphicsViewBenchmark/widgets/webview.h')
-rw-r--r--tests/benchmarks/gui/graphicsview/functional/GraphicsViewBenchmark/widgets/webview.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/benchmarks/gui/graphicsview/functional/GraphicsViewBenchmark/widgets/webview.h b/tests/benchmarks/gui/graphicsview/functional/GraphicsViewBenchmark/widgets/webview.h
new file mode 100644
index 0000000..73d5464
--- /dev/null
+++ b/tests/benchmarks/gui/graphicsview/functional/GraphicsViewBenchmark/widgets/webview.h
@@ -0,0 +1,40 @@
+#ifndef WEBVIEW_H
+#define WEBVIEW_H
+
+#include "scrollbar.h"
+#include "abstractscrollarea.h"
+
+class WebViewPrivate;
+
+class WebView : public AbstractScrollArea
+{
+ Q_OBJECT
+
+public:
+
+ WebView(QGraphicsWidget *parent = 0);
+ ~WebView();
+
+public:
+
+ void setUrl(const QUrl& url);
+
+private:
+
+ void scrollContentsBy(qreal dx, qreal dy);
+ void resizeEvent(QGraphicsSceneResizeEvent *event);
+ QSizeF sizeHint(Qt::SizeHint which, const QSizeF & constraint) const;
+
+private:
+
+ Q_PRIVATE_SLOT(d, void _q_loadStarted())
+ Q_PRIVATE_SLOT(d, void _q_loadProgress(int))
+ Q_PRIVATE_SLOT(d, void _q_loadFinished(bool))
+ Q_PRIVATE_SLOT(d, void _q_viewportChanged(QGraphicsWidget*))
+ Q_PRIVATE_SLOT(d, void _q_motionEnded())
+
+ WebViewPrivate *d;
+ friend class WebViewPrivate;
+};
+
+#endif // WEBVIEW_H