|
|
|
@ -62,12 +62,6 @@ namespace qbrowserlib { |
|
|
|
|
_settingJavascriptCanAccessClipboard; |
|
|
|
|
_attributes[QWebSettings::DeveloperExtrasEnabled] = |
|
|
|
|
_settingDeveloperExtrasEnabled; |
|
|
|
|
#if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0) |
|
|
|
|
_attributes[QWebSettings::SpatialNavigationEnabled] = |
|
|
|
|
_settingSpatialNavigationEnabled; |
|
|
|
|
#else |
|
|
|
|
_settingSpatialNavigationEnabled->hide(); |
|
|
|
|
#fi |
|
|
|
|
_attributes[QWebSettings::LinksIncludedInFocusChain] = |
|
|
|
|
_settingLinksIncludedInFocusChain; |
|
|
|
|
_attributes[QWebSettings::ZoomTextOnly] = |
|
|
|
@ -83,6 +77,8 @@ namespace qbrowserlib { |
|
|
|
|
_attributes[QWebSettings::LocalContentCanAccessRemoteUrls] = |
|
|
|
|
_settingLocalContentCanAccessRemoteUrls; |
|
|
|
|
#if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0) |
|
|
|
|
_attributes[QWebSettings::SpatialNavigationEnabled] = |
|
|
|
|
_settingSpatialNavigationEnabled; |
|
|
|
|
_attributes[QWebSettings::LocalContentCanAccessFileUrls] = |
|
|
|
|
_settingLocalContentCanAccessFileUrls; |
|
|
|
|
_attributes[QWebSettings::AcceleratedCompositingEnabled] = |
|
|
|
@ -92,11 +88,12 @@ namespace qbrowserlib { |
|
|
|
|
_attributes[QWebSettings::FrameFlatteningEnabled] = |
|
|
|
|
_settingFrameFlatteningEnabled; |
|
|
|
|
#else |
|
|
|
|
_settingSpatialNavigationEnabled->hide(); |
|
|
|
|
_settingLocalContentCanAccessFileUrls->hide(); |
|
|
|
|
_settingAcceleratedCompositingEnabled->hide(); |
|
|
|
|
_settingTiledBackingStoreEnabled->hide(); |
|
|
|
|
_settingFrameFlatteningEnabled->hide(); |
|
|
|
|
#fi |
|
|
|
|
#endif |
|
|
|
|
#if QT_VERSION >= QT_VERSION_CHECK(4, 8, 0) |
|
|
|
|
_attributes[QWebSettings::XSSAuditingEnabled] = |
|
|
|
|
_settingXSSAuditingEnabled; |
|
|
|
@ -105,7 +102,7 @@ namespace qbrowserlib { |
|
|
|
|
#else |
|
|
|
|
_settingXSSAuditingEnabled->hide(); |
|
|
|
|
_settingSiteSpecificQuirksEnabled->hide(); |
|
|
|
|
#fi |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
// CheckBoxes
|
|
|
|
|
_checkboxes["SaveWindowState"] = |
|
|
|
|