34 |
34 |
35 WEBENGINE_AVAILABLE = True |
35 WEBENGINE_AVAILABLE = True |
36 except ImportError: |
36 except ImportError: |
37 WEBENGINE_AVAILABLE = False |
37 WEBENGINE_AVAILABLE = False |
38 |
38 |
39 from eric7 import Preferences, Utilities |
39 from eric7 import Globals, Preferences |
40 from eric7.EricGui import EricPixmapCache |
40 from eric7.EricGui import EricPixmapCache |
41 from eric7.EricWidgets import EricFileDialog, EricMessageBox |
41 from eric7.EricWidgets import EricFileDialog, EricMessageBox |
42 from eric7.EricWidgets.EricApplication import ericApp |
42 from eric7.EricWidgets.EricApplication import ericApp |
43 from eric7.EricWidgets.EricTextEditSearchWidget import ( |
43 from eric7.EricWidgets.EricTextEditSearchWidget import ( |
44 EricTextEditSearchWidget, |
44 EricTextEditSearchWidget, |
678 Private method to determine the name of the QtHelp collection file. |
678 Private method to determine the name of the QtHelp collection file. |
679 |
679 |
680 @return path of the QtHelp collection file |
680 @return path of the QtHelp collection file |
681 @rtype str |
681 @rtype str |
682 """ |
682 """ |
683 qthelpDir = os.path.join(Utilities.getConfigDir(), "qthelp") |
683 qthelpDir = os.path.join(Globals.getConfigDir(), "qthelp") |
684 if not os.path.exists(qthelpDir): |
684 if not os.path.exists(qthelpDir): |
685 os.makedirs(qthelpDir) |
685 os.makedirs(qthelpDir) |
686 return os.path.join(qthelpDir, "eric7help.qhc") |
686 return os.path.join(qthelpDir, "eric7help.qhc") |
687 |
687 |
688 @pyqtSlot(str) |
688 @pyqtSlot(str) |