mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +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
@ -253,6 +253,11 @@ void MainApplication::loadSettings()
|
||||
m_websettings->setAttribute(QWebSettings::AcceleratedCompositingEnabled, true);
|
||||
#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::CursiveFont, settings.value("CursiveFont", m_websettings->fontFamily(QWebSettings::CursiveFont)).toString());
|
||||
m_websettings->setFontFamily(QWebSettings::FantasyFont, settings.value("FantasyFont", m_websettings->fontFamily(QWebSettings::FantasyFont)).toString());
|
||||
|
Loading…
Reference in New Issue
Block a user