10 from PyQt4.QtCore import * |
10 from PyQt4.QtCore import * |
11 from PyQt4.QtGui import * |
11 from PyQt4.QtGui import * |
12 |
12 |
13 from .HelpTopicDialog import HelpTopicDialog |
13 from .HelpTopicDialog import HelpTopicDialog |
14 |
14 |
|
15 |
15 class HelpIndexWidget(QWidget): |
16 class HelpIndexWidget(QWidget): |
16 """ |
17 """ |
17 Class implementing a window for showing the QtHelp index. |
18 Class implementing a window for showing the QtHelp index. |
18 |
19 |
19 @signal linkActivated(QUrl) emitted when an index entry is activated |
20 @signal linkActivated(QUrl) emitted when an index entry is activated |
23 """ |
24 """ |
24 linkActivated = pyqtSignal(QUrl) |
25 linkActivated = pyqtSignal(QUrl) |
25 linksActivated = pyqtSignal(dict, str) |
26 linksActivated = pyqtSignal(dict, str) |
26 escapePressed = pyqtSignal() |
27 escapePressed = pyqtSignal() |
27 |
28 |
28 def __init__(self, engine, mainWindow, parent = None): |
29 def __init__(self, engine, mainWindow, parent=None): |
29 """ |
30 """ |
30 Constructor |
31 Constructor |
31 |
32 |
32 @param engine reference to the help engine (QHelpEngine) |
33 @param engine reference to the help engine (QHelpEngine) |
33 @param mainWindow reference to the main window object (QMainWindow) |
34 @param mainWindow reference to the main window object (QMainWindow) |