summaryrefslogtreecommitdiffstats
path: root/src/webengine/api/qquickwebenginesettings_p.h
diff options
context:
space:
mode:
authorMichael Bruning <michael.bruning@qt.io>2016-08-09 16:28:44 +0200
committerJani Heikkinen <jani.heikkinen@qt.io>2016-08-28 06:50:44 +0000
commit54b7425c356378018c511bd9087f06767d0bc708 (patch)
tree5c95c24e5c70d1a7ae9bf4d9cc6d55ae5788e5e9 /src/webengine/api/qquickwebenginesettings_p.h
parent2609e257926c36e211a5aec9d6675e27dd447aad (diff)
Add setting to enable printing of CSS backgrounds
[ChangeLog][Printing] Printing will now include the CSS background of the printed elements by default. This restores the default behavior from Qt WebKit. It can be controlled via the PrintElementBackgrounds web setting. Task-number: QTBUG-54918 Change-Id: I37c37456dfec6368f22c36c515ac3cad1bbf8006 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/webengine/api/qquickwebenginesettings_p.h')
-rw-r--r--src/webengine/api/qquickwebenginesettings_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/webengine/api/qquickwebenginesettings_p.h b/src/webengine/api/qquickwebenginesettings_p.h
index 2675630f8..917b9e443 100644
--- a/src/webengine/api/qquickwebenginesettings_p.h
+++ b/src/webengine/api/qquickwebenginesettings_p.h
@@ -83,6 +83,7 @@ class Q_WEBENGINE_PRIVATE_EXPORT QQuickWebEngineSettings : public QObject {
Q_PROPERTY(bool autoLoadIconsForPage READ autoLoadIconsForPage WRITE setAutoLoadIconsForPage NOTIFY autoLoadIconsForPageChanged REVISION 2)
Q_PROPERTY(bool touchIconsEnabled READ touchIconsEnabled WRITE setTouchIconsEnabled NOTIFY touchIconsEnabledChanged REVISION 2)
Q_PROPERTY(bool focusOnNavigationEnabled READ focusOnNavigationEnabled WRITE setFocusOnNavigationEnabled NOTIFY focusOnNavigationEnabledChanged REVISION 3)
+ Q_PROPERTY(bool printElementBackgrounds READ printElementBackgrounds WRITE setPrintElementBackgrounds NOTIFY printElementBackgroundsChanged REVISION 3)
public:
~QQuickWebEngineSettings();
@@ -107,6 +108,7 @@ public:
bool autoLoadIconsForPage() const;
bool touchIconsEnabled() const;
bool focusOnNavigationEnabled() const;
+ bool printElementBackgrounds() const;
void setAutoLoadImages(bool on);
void setJavascriptEnabled(bool on);
@@ -128,6 +130,7 @@ public:
void setAutoLoadIconsForPage(bool on);
void setTouchIconsEnabled(bool on);
void setFocusOnNavigationEnabled(bool on);
+ void setPrintElementBackgrounds(bool on);
signals:
void autoLoadImagesChanged();
@@ -150,6 +153,7 @@ signals:
Q_REVISION(2) void autoLoadIconsForPageChanged();
Q_REVISION(2) void touchIconsEnabledChanged();
Q_REVISION(3) void focusOnNavigationEnabledChanged();
+ Q_REVISION(3) void printElementBackgroundsChanged();
private:
explicit QQuickWebEngineSettings(QQuickWebEngineSettings *parentSettings = 0);