add optional interval argument to start function of Timer stubs
Fixes failing tests for completer
This commit is contained in:
parent
0226025308
commit
7c584e7b6c
@ -377,7 +377,9 @@ class FakeTimer(QObject):
|
|||||||
def isSingleShot(self):
|
def isSingleShot(self):
|
||||||
return self._singleshot
|
return self._singleshot
|
||||||
|
|
||||||
def start(self):
|
def start(self, interval=None):
|
||||||
|
if interval:
|
||||||
|
self._interval = interval
|
||||||
self._started = True
|
self._started = True
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
@ -396,7 +398,7 @@ class InstaTimer(QObject):
|
|||||||
|
|
||||||
timeout = pyqtSignal()
|
timeout = pyqtSignal()
|
||||||
|
|
||||||
def start(self):
|
def start(self, interval=None):
|
||||||
self.timeout.emit()
|
self.timeout.emit()
|
||||||
|
|
||||||
def setSingleShot(self, yes):
|
def setSingleShot(self, yes):
|
||||||
|
Loading…
Reference in New Issue
Block a user