Renamed singleShot to isSingleShot in QTimer stub
As in compliance to: http://doc.qt.io/qt-5/qtimer.html
This commit is contained in:
parent
6388ec4794
commit
065c3fcd9d
@ -82,9 +82,9 @@ def test_disconnect_one_invalid(timer):
|
|||||||
|
|
||||||
def test_singleshot(timer):
|
def test_singleshot(timer):
|
||||||
"""Test setting singleShot."""
|
"""Test setting singleShot."""
|
||||||
assert not timer.singleShot()
|
assert not timer.isSingleShot()
|
||||||
timer.setSingleShot(True)
|
timer.setSingleShot(True)
|
||||||
assert timer.singleShot()
|
assert timer.isSingleShot()
|
||||||
timer.start()
|
timer.start()
|
||||||
assert timer.isActive()
|
assert timer.isActive()
|
||||||
timer.timeout.emit()
|
timer.timeout.emit()
|
||||||
|
Loading…
Reference in New Issue
Block a user