Changed the eric API documentation start page to the qthelp variant.

Fri, 25 Jan 2013 18:13:50 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 25 Jan 2013 18:13:50 +0100
changeset 2369
0b7b019247e5
parent 2368
7d6ba32b8f78
child 2370
e4a2a12f8e23

Changed the eric API documentation start page to the qthelp variant.

Documentation/Help/source.qch file | annotate | diff | comparison | revisions
UI/UserInterface.py file | annotate | diff | comparison | revisions
Binary file Documentation/Help/source.qch has changed
--- a/UI/UserInterface.py	Fri Jan 25 18:04:03 2013 +0100
+++ b/UI/UserInterface.py	Fri Jan 25 18:13:50 2013 +0100
@@ -4517,11 +4517,13 @@
         """
         Private slot to show the Eric documentation.
         """
-        home = Utilities.normjoinpath(getConfig('ericDocDir'),
-            "Source", "index.html")
+##        home = Utilities.normjoinpath(getConfig('ericDocDir'),
+##            "Source", "index.html")
+        home = "qthelp://org.eric5.ide/eric5/index.html"
         
         if not home.startswith("http://") and \
-           not home.startswith("https://"):
+           not home.startswith("https://") and \
+           not home.startswith("qthelp://"):
             if not os.path.exists(home):
                 E5MessageBox.warning(self,
                     self.trUtf8("Documentation Missing"),
@@ -4529,11 +4531,11 @@
                                 """ "<b>{0}</b>" could not be found.</p>""")\
                         .format(home))
                 return
-        
-        if Utilities.isWindowsPlatform():
-            home = "file:///" + Utilities.fromNativeSeparators(home)
-        else:
-            home = "file://" + home
+            
+            if Utilities.isWindowsPlatform():
+                home = "file:///" + Utilities.fromNativeSeparators(home)
+            else:
+                home = "file://" + home
         
         hvType = Preferences.getHelp("HelpViewerType")
         if hvType == 1:

eric ide

mercurial