WebBrowser/ClosedTabsManager.py

changeset 5653
c023821bb25f
parent 5389
9b1c800daff3
child 6048
82ad8ec9548c
equal deleted inserted replaced
5652:d1b65f380408 5653:c023821bb25f
14 14
15 class ClosedTab(object): 15 class ClosedTab(object):
16 """ 16 """
17 Class implementing a structure to store data about a closed tab. 17 Class implementing a structure to store data about a closed tab.
18 """ 18 """
19 def __init__(self, url=QUrl(), title="", position=-1): 19 def __init__(self, url=None, title="", position=-1):
20 """ 20 """
21 Constructor 21 Constructor
22 22
23 @param url URL of the closed tab (QUrl) 23 @param url URL of the closed tab (QUrl)
24 @param title title of the closed tab (string) 24 @param title title of the closed tab (string)
25 @param position index of the closed tab (integer) 25 @param position index of the closed tab (integer)
26 """ 26 """
27 self.url = url 27 self.url = QUrl() if url is None else QUrl(url)
28 self.title = title 28 self.title = title
29 self.position = position 29 self.position = position
30 30
31 def __eq__(self, other): 31 def __eq__(self, other):
32 """ 32 """

eric ide

mercurial