mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
Setting additional QWebSettings arguments when building w/ QtWebKit 2.2
Namely HyperlinkAuditingEnabled and JavascriptCanCloseWindows. See http://gitorious.org/+qtwebkit-
This commit is contained in:
parent
178baa7dc2
commit
bf22ffbf9e
|
@ -249,10 +249,15 @@ void MainApplication::loadSettings()
|
||||||
m_websettings->setAttribute(QWebSettings::ZoomTextOnly, zoomTextOnly);
|
m_websettings->setAttribute(QWebSettings::ZoomTextOnly, zoomTextOnly);
|
||||||
m_websettings->setAttribute(QWebSettings::PrintElementBackgrounds, printElBg);
|
m_websettings->setAttribute(QWebSettings::PrintElementBackgrounds, printElBg);
|
||||||
#ifdef USE_WEBGL
|
#ifdef USE_WEBGL
|
||||||
m_websettings->setAttribute(QWebSettings::WebGLEnabled , true);
|
m_websettings->setAttribute(QWebSettings::WebGLEnabled, true);
|
||||||
m_websettings->setAttribute(QWebSettings::AcceleratedCompositingEnabled, true);
|
m_websettings->setAttribute(QWebSettings::AcceleratedCompositingEnabled, true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if (QTWEBKIT_VERSION >= QTWEBKIT_VERSION_CHECK(2, 2, 0))
|
||||||
|
m_websettings->setAttribute(QWebSettings::HyperlinkAuditingEnabled, true);
|
||||||
|
m_websettings->setAttribute(QWebSettings::JavascriptCanCloseWindows, true);
|
||||||
|
#endif
|
||||||
|
|
||||||
m_websettings->setFontFamily(QWebSettings::StandardFont, settings.value("StandardFont", m_websettings->fontFamily(QWebSettings::StandardFont)).toString());
|
m_websettings->setFontFamily(QWebSettings::StandardFont, settings.value("StandardFont", m_websettings->fontFamily(QWebSettings::StandardFont)).toString());
|
||||||
m_websettings->setFontFamily(QWebSettings::CursiveFont, settings.value("CursiveFont", m_websettings->fontFamily(QWebSettings::CursiveFont)).toString());
|
m_websettings->setFontFamily(QWebSettings::CursiveFont, settings.value("CursiveFont", m_websettings->fontFamily(QWebSettings::CursiveFont)).toString());
|
||||||
m_websettings->setFontFamily(QWebSettings::FantasyFont, settings.value("FantasyFont", m_websettings->fontFamily(QWebSettings::FantasyFont)).toString());
|
m_websettings->setFontFamily(QWebSettings::FantasyFont, settings.value("FantasyFont", m_websettings->fontFamily(QWebSettings::FantasyFont)).toString());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user