--- a/Preferences/ConfigurationPages/HelpWebBrowserPage.py Sat Sep 17 16:28:41 2011 +0200 +++ b/Preferences/ConfigurationPages/HelpWebBrowserPage.py Sun Sep 18 20:04:24 2011 +0200 @@ -9,6 +9,7 @@ from PyQt4.QtCore import pyqtSlot, QLocale from PyQt4.QtNetwork import QNetworkRequest +from PyQt4.QtWebKit import QWebSettings from .ConfigurationPageBase import ConfigurationPageBase from .Ui_HelpWebBrowserPage import Ui_HelpWebBrowserPage @@ -121,6 +122,17 @@ index = self.languageCombo.findData(Preferences.getHelp("SearchLanguage")) if index > -1: self.languageCombo.setCurrentIndex(index) + + if hasattr(QWebSettings, "SpatialNavigationEnabled"): + self.spatialCheckBox.setChecked( + Preferences.getHelp("SpatialNavigationEnabled")) + else: + self.spatialCheckBox.setEnabled(False) + if hasattr(QWebSettings, "LinksIncludedInFocusChain"): + self.linksInFocusChainCheckBox.setChecked( + Preferences.getHelp("LinksIncludedInFocusChain")) + else: + self.linksInFocusChainCheckBox.setEnabled(False) def save(self): """ @@ -199,6 +211,13 @@ # fall back to system default language = QLocale.system().language() Preferences.setHelp("SearchLanguage", language) + + if hasattr(QWebSettings, "SpatialNavigationEnabled"): + Preferences.setHelp("SpatialNavigationEnabled", + self.spatialCheckBox.isChecked()) + if hasattr(QWebSettings, "LinksIncludedInFocusChain"): + Preferences.setHelp("LinksIncludedInFocusChain", + self.linksInFocusChainCheckBox.isChecked()) @pyqtSlot() def on_setCurrentPageButton_clicked(self):