Preferences/ConfigurationPages/WebBrowserPage.py

changeset 6410
98a5d0cd72f5
parent 6402
bdc273bb66c5
child 6645
ad476851d7e0
equal deleted inserted replaced
6405:2763348bf9a6 6410:98a5d0cd72f5
227 Preferences.getWebBrowser("WebInspectorEnabled")) 227 Preferences.getWebBrowser("WebInspectorEnabled"))
228 self.webInspectorPortSpinBox.setValue( 228 self.webInspectorPortSpinBox.setValue(
229 Preferences.getWebBrowser("WebInspectorPort")) 229 Preferences.getWebBrowser("WebInspectorPort"))
230 else: 230 else:
231 self.webInspectorGroup.setEnabled(False) 231 self.webInspectorGroup.setEnabled(False)
232
233 if qVersionTuple() >= (5, 11, 0):
234 self.protocolHandlerComboBox.setCurrentIndex(
235 Preferences.getWebBrowser("AcceptProtocolHandlerRequest"))
236 self.requestQuotaComboBox.setCurrentIndex(
237 Preferences.getWebBrowser("AcceptQuotaRequest"))
238 else:
239 self.protocolHandlerComboBox.setEnabled(False)
240 self.requestQuotaComboBox.setEnabled(False)
232 241
233 def save(self): 242 def save(self):
234 """ 243 """
235 Public slot to save the Help Viewers configuration. 244 Public slot to save the Help Viewers configuration.
236 """ 245 """
405 "WebInspectorEnabled", 414 "WebInspectorEnabled",
406 self.webInspectorGroup.isChecked()) 415 self.webInspectorGroup.isChecked())
407 Preferences.setWebBrowser( 416 Preferences.setWebBrowser(
408 "WebInspectorPort", 417 "WebInspectorPort",
409 self.webInspectorPortSpinBox.value()) 418 self.webInspectorPortSpinBox.value())
419
420 if self.protocolHandlerComboBox.isEnabled():
421 Preferences.setWebBrowser(
422 "AcceptProtocolHandlerRequest",
423 self.protocolHandlerComboBox.currentIndex())
424 Preferences.setWebBrowser(
425 "AcceptQuotaRequest",
426 self.requestQuotaComboBox.currentIndex())
410 427
411 @pyqtSlot() 428 @pyqtSlot()
412 def on_setCurrentPageButton_clicked(self): 429 def on_setCurrentPageButton_clicked(self):
413 """ 430 """
414 Private slot to set the current page as the home page. 431 Private slot to set the current page as the home page.

eric ide

mercurial