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