Helpviewer/ClosedTabsManager.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2999
28c75409a78f
child 3060
5883ce99ee12
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
32 def __eq__(self, other): 32 def __eq__(self, other):
33 """ 33 """
34 Special method implementing the equality operator. 34 Special method implementing the equality operator.
35 35
36 @param other reference to the object to compare against (ClosedTab) 36 @param other reference to the object to compare against (ClosedTab)
37 @return flag indicating equality of the tabs (boolean)
37 """ 38 """
38 return self.url == other.url and \ 39 return self.url == other.url and \
39 self.title == other.title and \ 40 self.title == other.title and \
40 self.position == other.position 41 self.position == other.position
41 42
42 43
43 class ClosedTabsManager(QObject): 44 class ClosedTabsManager(QObject):
44 """ 45 """
45 Class implementing a manager for closed tabs. 46 Class implementing a manager for closed tabs.
46 47
47 @signal closedTabAvailable(boolean) emitted to signal a change in availability 48 @signal closedTabAvailable(boolean) emitted to signal a change of
48 of closed tabs 49 availability of closed tabs
49 """ 50 """
50 closedTabAvailable = pyqtSignal(bool) 51 closedTabAvailable = pyqtSignal(bool)
51 52
52 def __init__(self, parent=None): 53 def __init__(self, parent=None):
53 """ 54 """

eric ide

mercurial