summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets/api/qwebenginepage.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-10-12 10:40:35 +0200
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-10-12 09:06:30 +0000
commit9da7d9234dbeebb20b9980155179bc0f7936a6cf (patch)
treef6ae1d6c904cc486413979bfde89ad866c5f3a69 /src/webenginewidgets/api/qwebenginepage.h
parent8ce1b9e5d67f1789a45d8d73960a892f77f34b06 (diff)
Add contentsSize API
Adds API to read contentsSize to go with scrollPosition. This property used to be in QWebFrame in QtWebKit. Change-Id: I498075e4c0ad916e5c96dbfb02101ce8a0c298ee Task-number: QTBUG-48323 Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com>
Diffstat (limited to 'src/webenginewidgets/api/qwebenginepage.h')
-rw-r--r--src/webenginewidgets/api/qwebenginepage.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/webenginewidgets/api/qwebenginepage.h b/src/webenginewidgets/api/qwebenginepage.h
index 13d6b4935..ae616aaed 100644
--- a/src/webenginewidgets/api/qwebenginepage.h
+++ b/src/webenginewidgets/api/qwebenginepage.h
@@ -69,6 +69,7 @@ class QWEBENGINEWIDGETS_EXPORT QWebEnginePage : public QObject {
Q_PROPERTY(QUrl url READ url WRITE setUrl)
Q_PROPERTY(QUrl iconUrl READ iconUrl)
Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor)
+ Q_PROPERTY(QSizeF contentsSize READ contentsSize NOTIFY contentsSizeChanged)
Q_PROPERTY(QPointF scrollPosition READ scrollPosition NOTIFY scrollPositionChanged)
public:
@@ -226,6 +227,7 @@ public:
void setZoomFactor(qreal factor);
QPointF scrollPosition() const;
+ QSizeF contentsSize() const;
void runJavaScript(const QString& scriptSource);
#ifdef Q_QDOC
@@ -267,6 +269,7 @@ Q_SIGNALS:
void iconUrlChanged(const QUrl &url);
void scrollPositionChanged(const QPointF &position);
+ void contentsSizeChanged(const QSizeF &size);
protected:
virtual QWebEnginePage *createWindow(WebWindowType type);