2
0
mirror of https://github.com/m-labs/artiq.git synced 2025-02-07 16:15:22 +08:00

browser: fix ctrl scroll type error

This commit is contained in:
Simon Renblad 2024-07-10 15:47:32 +08:00 committed by Sebastien Bourdeauducq
parent 4bc23192f1
commit e8da7581bc

View File

@ -83,7 +83,7 @@ class ZoomIconView(QtWidgets.QListView):
w = self.iconSize().width()*self.zoom_step**( w = self.iconSize().width()*self.zoom_step**(
ev.angleDelta().y()/120.) ev.angleDelta().y()/120.)
if a <= w <= b: if a <= w <= b:
self.setIconSize(QtCore.QSize(w, w*self.aspect)) self.setIconSize(QtCore.QSize(int(w), int(w*self.aspect)))
else: else:
QtWidgets.QListView.wheelEvent(self, ev) QtWidgets.QListView.wheelEvent(self, ev)