131 if hasattr(QWebSettings, "LinksIncludedInFocusChain"): |
131 if hasattr(QWebSettings, "LinksIncludedInFocusChain"): |
132 self.linksInFocusChainCheckBox.setChecked( |
132 self.linksInFocusChainCheckBox.setChecked( |
133 Preferences.getHelp("LinksIncludedInFocusChain")) |
133 Preferences.getHelp("LinksIncludedInFocusChain")) |
134 else: |
134 else: |
135 self.linksInFocusChainCheckBox.setEnabled(False) |
135 self.linksInFocusChainCheckBox.setEnabled(False) |
|
136 if hasattr(QWebSettings, "XSSAuditingEnabled"): |
|
137 self.xssAuditingCheckBox.setChecked( |
|
138 Preferences.getHelp("XSSAuditingEnabled")) |
|
139 else: |
|
140 self.xssAuditingCheckBox.setEnabled(False) |
|
141 if hasattr(QWebSettings, "SiteSpecificQuirksEnabled"): |
|
142 self.quirksCheckBox.setChecked( |
|
143 Preferences.getHelp("SiteSpecificQuirksEnabled")) |
|
144 else: |
|
145 self.quirksCheckBox.setEnabled(False) |
136 |
146 |
137 def save(self): |
147 def save(self): |
138 """ |
148 """ |
139 Public slot to save the Help Viewers configuration. |
149 Public slot to save the Help Viewers configuration. |
140 """ |
150 """ |
216 Preferences.setHelp("SpatialNavigationEnabled", |
226 Preferences.setHelp("SpatialNavigationEnabled", |
217 self.spatialCheckBox.isChecked()) |
227 self.spatialCheckBox.isChecked()) |
218 if hasattr(QWebSettings, "LinksIncludedInFocusChain"): |
228 if hasattr(QWebSettings, "LinksIncludedInFocusChain"): |
219 Preferences.setHelp("LinksIncludedInFocusChain", |
229 Preferences.setHelp("LinksIncludedInFocusChain", |
220 self.linksInFocusChainCheckBox.isChecked()) |
230 self.linksInFocusChainCheckBox.isChecked()) |
|
231 if hasattr(QWebSettings, "XSSAuditingEnabled"): |
|
232 Preferences.setHelp("XSSAuditingEnabled", |
|
233 self.xssAuditingCheckBox.isChecked()) |
|
234 if hasattr(QWebSettings, "SiteSpecificQuirksEnabled"): |
|
235 Preferences.setHelp("SiteSpecificQuirksEnabled", |
|
236 self.quirksCheckBox.isChecked()) |
221 |
237 |
222 @pyqtSlot() |
238 @pyqtSlot() |
223 def on_setCurrentPageButton_clicked(self): |
239 def on_setCurrentPageButton_clicked(self): |
224 """ |
240 """ |
225 Private slot to set the current page as the home page. |
241 Private slot to set the current page as the home page. |