eric6_browser.py

branch
QtWebEngine
changeset 4875
4ee26909ac0d
parent 4869
d1b3addfbd07
child 5389
9b1c800daff3
--- a/eric6_browser.py	Sat Mar 19 12:13:09 2016 +0100
+++ b/eric6_browser.py	Sat Mar 19 16:05:11 2016 +0100
@@ -99,6 +99,8 @@
     
     searchWord = None
     private = False
+    qthelp = False
+    
     for arg in reversed(argv):
         if arg.startswith("--search="):
             searchWord = argv[1].split("=", 1)[1]
@@ -106,6 +108,9 @@
         elif arg == "--private":
             private = True
             argv.remove(arg)
+        elif arg == "--qthelp":
+            qthelp = True
+            argv.remove(arg)
         elif arg.startswith("--"):
             argv.remove(arg)
     
@@ -116,7 +121,7 @@
     
     browser = WebBrowserWindow(home, '.', None, 'web_browser',
                                searchWord=searchWord, private=private,
-                               settingsDir=SettingsDir)
+                               settingsDir=SettingsDir, qthelp=qthelp)
     return browser
 
 
@@ -128,6 +133,7 @@
         ("--config=configDir",
          "use the given directory as the one containing the config files"),
         ("--private", "start the browser in private browsing mode"),
+        ("--qthelp", "start the browser with support for QtHelp"),
         ("--search=word", "search for the given word"),
         ("--settings=settingsDir",
          "use the given directory to store the settings files"),

eric ide

mercurial