15 |
15 |
16 class ClosedTab(object): |
16 class ClosedTab(object): |
17 """ |
17 """ |
18 Class implementing a structure to store data about a closed tab. |
18 Class implementing a structure to store data about a closed tab. |
19 """ |
19 """ |
20 def __init__(self, url=QUrl(), title="", position=-1): |
20 def __init__(self, url=None, title="", position=-1): |
21 """ |
21 """ |
22 Constructor |
22 Constructor |
23 |
23 |
24 @param url URL of the closed tab (QUrl) |
24 @param url URL of the closed tab (QUrl) |
25 @param title title of the closed tab (string) |
25 @param title title of the closed tab (string) |
26 @param position index of the closed tab (integer) |
26 @param position index of the closed tab (integer) |
27 """ |
27 """ |
28 self.url = url |
28 self.url = QUrl() if url is None else QUrl(url) |
29 self.title = title |
29 self.title = title |
30 self.position = position |
30 self.position = position |
31 |
31 |
32 def __eq__(self, other): |
32 def __eq__(self, other): |
33 """ |
33 """ |