diff options
author | Zeno Albisser <zeno.albisser@theqtcompany.com> | 2015-01-21 10:42:47 +0200 |
---|---|---|
committer | Zeno Albisser <zeno.albisser@digia.com> | 2015-03-30 12:08:09 +0000 |
commit | 3ed2314133cca326363b8bef1a5927dfb685e2a0 (patch) | |
tree | c40eb10a8c771eebd288bd999e5460f331a4b2f6 /src/webengine/api/qquickwebenginesettings.cpp | |
parent | dac590ce0d0b40af8332209c402639a5e14e4b6b (diff) |
Add support for Shockwave Flash plugin.
We will try to load the pepper flash plugin from
the places where it is most commonly located.
Alternatively the location and flash version
can be passed on the command line.
Change-Id: I41367586462157e722661aab3630357d6caf6a81
Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com>
Diffstat (limited to 'src/webengine/api/qquickwebenginesettings.cpp')
-rw-r--r-- | src/webengine/api/qquickwebenginesettings.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/webengine/api/qquickwebenginesettings.cpp b/src/webengine/api/qquickwebenginesettings.cpp index 8a88bac68..26ea094a5 100644 --- a/src/webengine/api/qquickwebenginesettings.cpp +++ b/src/webengine/api/qquickwebenginesettings.cpp @@ -209,6 +209,18 @@ bool QQuickWebEngineSettings::errorPageEnabled() const } /*! + \qmlproperty bool WebEngineSettings::pluginsEnabled + + This setting enables general support for plugins. + + It is disabled by default. +*/ +bool QQuickWebEngineSettings::pluginsEnabled() const +{ + return d_ptr->testAttribute(WebEngineSettings::PluginsEnabled); +} + +/*! \qmlproperty QString WebEngineSettings::defaultTextEncoding The \a encoding, must be a string describing an encoding such as "utf-8", @@ -312,6 +324,14 @@ void QQuickWebEngineSettings::setErrorPageEnabled(bool on) Q_EMIT errorPageEnabledChanged(); } +void QQuickWebEngineSettings::setPluginsEnabled(bool on) +{ + bool wasOn = d_ptr->testAttribute(WebEngineSettings::PluginsEnabled); + d_ptr->setAttribute(WebEngineSettings::PluginsEnabled, on); + if (wasOn != on) + Q_EMIT pluginsEnabledChanged(); +} + void QQuickWebEngineSettings::setDefaultTextEncoding(QString encoding) { const QString oldDefaultTextEncoding = d_ptr->defaultTextEncoding(); |