Skip to content

Commit

Permalink
QTimer::setInterval expects int argument
Browse files Browse the repository at this point in the history
Since Ubuntu 22.04 / Qt 5.15, Qt is pickier about the correct type.
  • Loading branch information
rhaschke committed Nov 3, 2023
1 parent 6b9fd8b commit a52bb3d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,13 @@ def __init__(self, context):
# Timer for controller manager updates
self._list_cm = ControllerManagerLister()
self._update_cm_list_timer = QTimer(self)
self._update_cm_list_timer.setInterval(1000.0 /
self._cm_update_freq)
self._update_cm_list_timer.setInterval(int(1000.0 / self._cm_update_freq))
self._update_cm_list_timer.timeout.connect(self._update_cm_list)
self._update_cm_list_timer.start()

# Timer for running controller updates
self._update_ctrl_list_timer = QTimer(self)
self._update_ctrl_list_timer.setInterval(1000.0 /
self._cm_update_freq)
self._update_ctrl_list_timer.setInterval(int(1000.0 / self._cm_update_freq))
self._update_ctrl_list_timer.timeout.connect(self._update_controllers)
self._update_ctrl_list_timer.start()

Expand Down

0 comments on commit a52bb3d

Please sign in to comment.