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 """ |