Move __iter__ to AbstractHistory
This commit is contained in:
parent
59c9ee88e5
commit
aebc29337a
@ -330,7 +330,7 @@ class AbstractHistory:
|
||||
self.history = None
|
||||
|
||||
def __iter__(self):
|
||||
raise NotImplementedError
|
||||
return iter(self.history.items())
|
||||
|
||||
def current_idx(self):
|
||||
raise NotImplementedError
|
||||
|
@ -60,9 +60,6 @@ class WebEngineScroller(tab.AbstractScroller):
|
||||
|
||||
class WebEngineHistory(tab.AbstractHistory):
|
||||
|
||||
def __iter__(self):
|
||||
return iter(self.history.items())
|
||||
|
||||
def current_idx(self):
|
||||
return self.history.currentItemIndex()
|
||||
|
||||
|
@ -368,9 +368,6 @@ class WebViewScroller(tab.AbstractScroller):
|
||||
|
||||
class WebViewHistory(tab.AbstractHistory):
|
||||
|
||||
def __iter__(self):
|
||||
return iter(self.history.items())
|
||||
|
||||
def current_idx(self):
|
||||
return self.history.currentItemIndex()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user