summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2017-06-02 16:46:52 +0200
committerKai Koehne <kai.koehne@qt.io>2017-06-09 14:35:20 +0000
commita5333cc77c2895be04057cba96095063cee6d879 (patch)
tree3a1a8b53c3247b5a95dd667f041b9cfd622c22fe /src
parent532cc891fdad5e329bb31724f527bfba1e2e8a44 (diff)
Doc: Mark globalSettings() obsolete in QWebEngineSettings
Replace references to global settings with references to the profile that the page belongs to. Task-number: QTBUG-57349 Change-Id: I19a2bf999608f2d4f7b565ea50bac1cbf9690c46 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/webenginewidgets/api/qwebenginesettings.cpp6
-rw-r--r--src/webenginewidgets/doc/src/qwebenginesettings_lgpl.qdoc34
2 files changed, 14 insertions, 26 deletions
diff --git a/src/webenginewidgets/api/qwebenginesettings.cpp b/src/webenginewidgets/api/qwebenginesettings.cpp
index 08d24376a..65c77a54d 100644
--- a/src/webenginewidgets/api/qwebenginesettings.cpp
+++ b/src/webenginewidgets/api/qwebenginesettings.cpp
@@ -122,9 +122,9 @@ QWebEngineSettings *QWebEngineSettings::globalSettings()
#endif
/*!
- Returns the default settings for the web engine page.
-
- \sa globalSettings()
+ Returns the settings for a web engine page that belongs to the default
+ profile. All web pages not specifically created with another profile belong
+ to the default profile.
*/
QWebEngineSettings *QWebEngineSettings::defaultSettings()
{
diff --git a/src/webenginewidgets/doc/src/qwebenginesettings_lgpl.qdoc b/src/webenginewidgets/doc/src/qwebenginesettings_lgpl.qdoc
index efbeb1991..d26babd5a 100644
--- a/src/webenginewidgets/doc/src/qwebenginesettings_lgpl.qdoc
+++ b/src/webenginewidgets/doc/src/qwebenginesettings_lgpl.qdoc
@@ -24,12 +24,9 @@
/*!
\fn static QWebEngineSettings *QWebEngineSettings::globalSettings()
- Returns the global settings object.
+ \obsolete
- Any setting changed on the default object is automatically applied to all
- QWebEnginePage instances where the particular setting is not overridden already.
-
- \sa defaultSettings()
+ Use defaultSettings() instead.
*/
/*!
@@ -40,16 +37,15 @@
\inmodule QtWebEngineWidgets
- Each QWebEnginePage object has its own QWebEngineSettings object, which configures the
- settings for that page. If a setting is not configured, then it is looked
- up in the global settings object, which can be accessed using
- globalSettings().
-
QWebEngineSettings allows configuration of browser properties, such as font sizes and
families, the location of a custom style sheet, and generic attributes, such as JavaScript
support. Individual attributes are set using the setAttribute() function. The
\l{QWebEngineSettings::WebAttribute}{WebAttribute} enum further describes each attribute.
+ Each QWebEnginePage object has its own QWebEngineSettings object, which configures the
+ settings for that page. If a setting is not configured for a web engine
+ page, it is looked up in the settings of the profile the page belongs to.
+
\sa QWebEnginePage::settings(), QWebEngineView::settings()
*/
@@ -181,10 +177,8 @@
/*!
\fn void QWebEngineSettings::resetFontSize(FontSize type)
- Resets the font size for \a type to the size specified in the global
- settings object.
-
- This function has no effect on the global QWebEngineSettings instance.
+ Resets the font size for \a type to the size specified in the profile that
+ the page belongs to.
*/
/*!
@@ -219,10 +213,8 @@
/*!
\fn void QWebEngineSettings::resetFontFamily(FontFamily which)
- Resets the actual font family specified by \a which to the one set
- in the global QWebEngineSettings instance.
-
- This function has no effect on the global QWebEngineSettings instance.
+ Resets the actual font family specified by \a which to the one specified
+ in the profile that the page belongs to.
*/
/*!
@@ -242,9 +234,5 @@
\fn void QWebEngineSettings::resetAttribute(WebAttribute attribute)
Resets the setting of \a attribute to the value specified in the
- global QWebEngineSettings instance.
-
- This function has no effect on the global QWebEngineSettings instance.
-
- \sa globalSettings()
+ profile that the page belongs to.
*/