6 """ |
6 """ |
7 Module implementing a widget to show some source code information provided by |
7 Module implementing a widget to show some source code information provided by |
8 plug-ins. |
8 plug-ins. |
9 """ |
9 """ |
10 |
10 |
11 from PyQt5.QtCore import pyqtSlot, pyqtSignal, Qt, QUrl, QTimer |
11 from PyQt6.QtCore import pyqtSlot, pyqtSignal, Qt, QUrl, QTimer |
12 from PyQt5.QtGui import QCursor |
12 from PyQt6.QtGui import QCursor |
13 from PyQt5.QtWidgets import ( |
13 from PyQt6.QtWidgets import ( |
14 QWidget, QVBoxLayout, QHBoxLayout, QLabel, QComboBox, QSizePolicy, |
14 QWidget, QVBoxLayout, QHBoxLayout, QLabel, QComboBox, QSizePolicy, |
15 QLineEdit, QTextBrowser, QToolTip |
15 QLineEdit, QTextBrowser, QToolTip |
16 ) |
16 ) |
17 |
17 |
18 from E5Gui.E5TextEditSearchWidget import E5TextEditSearchWidget, E5TextEditType |
18 from E5Gui.E5TextEditSearchWidget import E5TextEditSearchWidget, E5TextEditType |
77 self.__verticalLayout = QVBoxLayout(self) |
77 self.__verticalLayout = QVBoxLayout(self) |
78 self.__verticalLayout.setObjectName("verticalLayout") |
78 self.__verticalLayout.setObjectName("verticalLayout") |
79 self.__verticalLayout.setContentsMargins(0, 0, 0, 0) |
79 self.__verticalLayout.setContentsMargins(0, 0, 0, 0) |
80 |
80 |
81 try: |
81 try: |
82 from PyQt5.QtWebEngineWidgets import ( |
82 from PyQt6.QtWebEngineWidgets import ( |
83 QWebEngineView, QWebEngineSettings |
83 QWebEngineView, QWebEngineSettings |
84 ) |
84 ) |
85 self.__contents = QWebEngineView(self) |
85 self.__contents = QWebEngineView(self) |
86 self.__contents.page().linkHovered.connect(self.__showLink) |
86 self.__contents.page().linkHovered.connect(self.__showLink) |
87 self.__contents.settings().setAttribute( |
87 self.__contents.settings().setAttribute( |