8 """ |
8 """ |
9 |
9 |
10 from PyQt4.QtCore import * |
10 from PyQt4.QtCore import * |
11 from PyQt4.QtGui import * |
11 from PyQt4.QtGui import * |
12 |
12 |
|
13 |
13 class HelpTocWidget(QWidget): |
14 class HelpTocWidget(QWidget): |
14 """ |
15 """ |
15 Class implementing a window for showing the QtHelp TOC. |
16 Class implementing a window for showing the QtHelp TOC. |
16 |
17 |
17 @signal linkActivated(QUrl) emitted when a TOC entry is activated |
18 @signal linkActivated(QUrl) emitted when a TOC entry is activated |
18 @signal escapePressed() emitted when the ESC key was pressed |
19 @signal escapePressed() emitted when the ESC key was pressed |
19 """ |
20 """ |
20 linkActivated = pyqtSignal(QUrl) |
21 linkActivated = pyqtSignal(QUrl) |
21 escapePressed = pyqtSignal() |
22 escapePressed = pyqtSignal() |
22 |
23 |
23 def __init__(self, engine, mainWindow, parent = None): |
24 def __init__(self, engine, mainWindow, parent=None): |
24 """ |
25 """ |
25 Constructor |
26 Constructor |
26 |
27 |
27 @param engine reference to the help engine (QHelpEngine) |
28 @param engine reference to the help engine (QHelpEngine) |
28 @param mainWindow reference to the main window object (QMainWindow) |
29 @param mainWindow reference to the main window object (QMainWindow) |