4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a window for showing the QtHelp index. |
7 Module implementing a window for showing the QtHelp index. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
9 |
11 |
10 from PyQt4.QtCore import pyqtSignal, Qt, QEvent, QUrl |
12 from PyQt4.QtCore import pyqtSignal, Qt, QEvent, QUrl |
11 from PyQt4.QtGui import QWidget, QVBoxLayout, QTextBrowser, QApplication, QMenu |
13 from PyQt4.QtGui import QWidget, QVBoxLayout, QTextBrowser, QApplication, QMenu |
12 |
14 |
13 |
15 |
27 |
29 |
28 @param engine reference to the help search engine (QHelpSearchEngine) |
30 @param engine reference to the help search engine (QHelpSearchEngine) |
29 @param mainWindow reference to the main window object (QMainWindow) |
31 @param mainWindow reference to the main window object (QMainWindow) |
30 @param parent reference to the parent widget (QWidget) |
32 @param parent reference to the parent widget (QWidget) |
31 """ |
33 """ |
32 super().__init__(parent) |
34 super(HelpSearchWidget, self).__init__(parent) |
33 |
35 |
34 self.__engine = engine |
36 self.__engine = engine |
35 self.__mw = mainWindow |
37 self.__mw = mainWindow |
36 |
38 |
37 self.__layout = QVBoxLayout(self) |
39 self.__layout = QVBoxLayout(self) |