347 |
347 |
348 def saveSearches(self): |
348 def saveSearches(self): |
349 """ |
349 """ |
350 Public method to save the recently performed web searches. |
350 Public method to save the recently performed web searches. |
351 """ |
351 """ |
352 Preferences.Prefs.settings.setValue( |
352 Preferences.getSettings().setValue( |
353 'WebBrowser/WebSearches', self.__recentSearches) |
353 'WebBrowser/WebSearches', self.__recentSearches) |
354 |
354 |
355 def __loadSearches(self): |
355 def __loadSearches(self): |
356 """ |
356 """ |
357 Private method to load the recently performed web searches. |
357 Private method to load the recently performed web searches. |
358 """ |
358 """ |
359 searches = Preferences.Prefs.settings.value('WebBrowser/WebSearches') |
359 searches = Preferences.getSettings().value('WebBrowser/WebSearches') |
360 if searches is not None: |
360 if searches is not None: |
361 self.__recentSearches = searches |
361 self.__recentSearches = searches |
362 |
362 |
363 def openSearchManager(self): |
363 def openSearchManager(self): |
364 """ |
364 """ |