21 ) |
21 ) |
22 from PyQt6.QtGui import QClipboard, QDesktopServices, QGuiApplication, QImage |
22 from PyQt6.QtGui import QClipboard, QDesktopServices, QGuiApplication, QImage |
23 from PyQt6.QtWidgets import QMenu, QTextBrowser |
23 from PyQt6.QtWidgets import QMenu, QTextBrowser |
24 |
24 |
25 from eric7.EricGui import EricPixmapCache |
25 from eric7.EricGui import EricPixmapCache |
|
26 from eric7.EricWidgets.EricTextEditSearchWidget import EricTextEditType |
26 |
27 |
27 from .HelpViewerImpl import HelpViewerImpl |
28 from .HelpViewerImpl import HelpViewerImpl |
28 |
29 |
29 AboutBlank = QCoreApplication.translate( |
30 AboutBlank = QCoreApplication.translate( |
30 "HelpViewer", |
31 "HelpViewer", |
55 @type QHelpEngine |
56 @type QHelpEngine |
56 @param parent reference to the parent widget |
57 @param parent reference to the parent widget |
57 @type QWidget |
58 @type QWidget |
58 """ |
59 """ |
59 QTextBrowser.__init__(self, parent=parent) |
60 QTextBrowser.__init__(self, parent=parent) |
60 HelpViewerImpl.__init__(self, engine) |
61 HelpViewerImpl.__init__(self, engine, EricTextEditType.QTEXTBROWSER) |
61 |
62 |
62 self.__helpViewerWidget = parent |
63 self.__helpViewerWidget = parent |
63 |
64 |
64 self.__zoomCount = 0 |
65 self.__zoomCount = 0 |
65 |
66 |