4185 """ |
4185 """ |
4186 Private slot to start the Qt-Assistant 4 executable. |
4186 Private slot to start the Qt-Assistant 4 executable. |
4187 """ |
4187 """ |
4188 self.__assistant(version = 4) |
4188 self.__assistant(version = 4) |
4189 |
4189 |
4190 def __startWebBrowser(self, home = ""): |
4190 def __startWebBrowser(self): |
4191 """ |
4191 """ |
4192 Private slot to start the eric5 web browser. |
4192 Private slot to start the eric5 web browser. |
4193 |
4193 """ |
4194 @param home full pathname of a file to display (string) |
4194 self.launchHelpViewer("") |
4195 """ |
|
4196 self.launchHelpViewer(home) |
|
4197 |
4195 |
4198 def __customViewer(self, home = None): |
4196 def __customViewer(self, home = None): |
4199 """ |
4197 """ |
4200 Private slot to start a custom viewer. |
4198 Private slot to start a custom viewer. |
4201 |
4199 |
4866 if searchWord == "": |
4864 if searchWord == "": |
4867 searchWord = None |
4865 searchWord = None |
4868 |
4866 |
4869 self.launchHelpViewer("", searchWord = searchWord) |
4867 self.launchHelpViewer("", searchWord = searchWord) |
4870 |
4868 |
4871 def __webBrowser(self): |
4869 def __webBrowser(self, home=""): |
4872 """ |
4870 """ |
4873 Private slot to start the eric5 web browser. |
4871 Private slot to start the eric5 web browser. |
4874 """ |
4872 |
4875 self.launchHelpViewer("") |
4873 @param home full pathname of a file to display (string) |
|
4874 """ |
|
4875 started = QDesktopServices.openUrl(QUrl(home)) |
|
4876 if not started: |
|
4877 E5MessageBox.critical(self, |
|
4878 self.trUtf8('Open Browser'), |
|
4879 self.trUtf8('Could not start a web browser')) |
4876 |
4880 |
4877 def showPreferences(self, pageName = None): |
4881 def showPreferences(self, pageName = None): |
4878 """ |
4882 """ |
4879 Public slot to set the preferences. |
4883 Public slot to set the preferences. |
4880 |
4884 |