Fix indentation

This commit is contained in:
John Yani
2020-09-29 23:22:32 +03:00
committed by Yorik van Havre
parent a76bdab449
commit 7208e757b9

View File

@@ -1123,7 +1123,7 @@ class Snapper:
for w in mw.findChild(QtGui.QMdiArea).findChildren(QtGui.QWidget):
if w.metaObject().className() == "SIM::Coin3D::Quarter::QuarterWidget":
if int(QtCore.qVersion()) > 4:
device_pixel_ratio = w.devicePixelRatio()
device_pixel_ratio = w.devicePixelRatio()
return device_pixel_ratio
def get_cursor_with_tail(self, base_icon_name, tail_icon_name=None):
@@ -1148,7 +1148,7 @@ class Snapper:
cur_hot_x = 0.25 * full_icon_size * device_pixel_ratio
cur_hot_y = 0.25 * full_icon_size * device_pixel_ratio
if int(QtCore.qVersion()) > 4:
new_icon.setDevicePixelRatio(device_pixel_ratio)
new_icon.setDevicePixelRatio(device_pixel_ratio)
cur = QtGui.QCursor(new_icon, cur_hot_x, cur_hot_y)
return cur