Helpviewer/HelpTocWidget.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1112
8a7d1b9d18db
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
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)

eric ide

mercurial