给view.py添加中文注释

This commit is contained in:
Jiayan Chen 2025-10-17 13:43:18 +08:00
parent ac41971d43
commit fe07dc43da

View file

@ -214,7 +214,8 @@ class BeeGraphicsView(MainControlsMixin,
self.recalc_scene_rect() # 重新计算场景矩形
# It seems to be more reliable when we fit a second time
# Sometimes a changing scene rect can mess up the fitting
self.fitInView(rect, Qt.AspectRatioMode.KeepAspectRatio)
self.fitInView(rect, Qt.AspectRatioMode.KeepAspectRatio) # 适合矩形,保持纵横比
self.recalc_scene_rect() # 重新计算场景矩形
logger.trace('Fit view done')
def get_confirmation_unsaved_changes(self, msg):