Using the small canvaspreview to pan the patchbay resulted in an
exception when panning out of bounds of the window. In this case Carla
tried to create a QPoint with two floats, for which qt has no
constructor. This results in the panning to hang, as the event is
"handled" with an exception.
Casting these two values to int lets qt create the QPoint
and with that properly set the new cursor position, so panning can be
done in all edges again, without having to be precise with the cursor
positioning.
This is probably a left-over from a python2 to python3 migration, as
python did integer divison by default.
The `CanvasBox.positionChanged` signal expects to receive `x` and `y` as
`int`s, but they were being passed as `float`s, which mangled them on
the receiving signal handler.
This manifested as huge `x` and `y` values for canvas boxes, and when
saving and loading projects all boxes would hit the edge of the canvas
and get placed at the extreme edge.
Fixes this error, which would occur after `setPrecision` had been called
with a non-integer value.
```
Traceback (most recent call last):
File "/usr/share/carla/carla_host.py", line 1442, in slot_handlePluginAddedCallback
pitem = self.ui.listWidget.createItem(pluginId, self.fSavedSettings[CARLA_KEY_MAIN_CLASSIC_SKIN])
File "/usr/share/carla/widgets/racklistwidget.py", line 241, in createItem
return RackListItem(self, pluginId, useClassicSkin)
File "/usr/share/carla/widgets/racklistwidget.py", line 86, in __init__
self.recreateWidget(firstInit = True)
File "/usr/share/carla/widgets/racklistwidget.py", line 176, in recreateWidget
self.fWidget = createPluginSlot(self.fParent, self.host, self.fPluginId, self.fOptions)
File "/usr/share/carla/carla_skin.py", line 2090, in createPluginSlot
return PluginSlot_Default(parent, host, pluginId, skinColor, skinStyle)
File "/usr/share/carla/carla_skin.py", line 1766, in __init__
self.ready()
File "/usr/share/carla/carla_skin.py", line 642, in ready
paramWidget.setValue(self.host.get_internal_parameter_value(self.fPluginId, paramIndex))
File "/usr/share/carla/widgets/scalabledial.py", line 282, in setValue
QDial.setValue(self, qtValue)
TypeError: setValue(self, int): argument 2 has unexpected type 'float'
Error mapping plugin to canvas client: 16 Step Sequencer
```