- made the mouse cursor (big, small) change in real time for both graphic engines

This commit is contained in:
Marius Stanciu
2019-09-27 17:19:44 +03:00
parent 7b9907fa1d
commit 537b843a04
4 changed files with 41 additions and 6 deletions

View File

@@ -6428,13 +6428,21 @@ class App(QtCore.QObject):
:param val: type of mouse cursor, set in Preferences ('small' or 'big')
:return: None
"""
self.app_cursor.enabled = False
if val == 'small':
self.ui.general_defaults_form.general_gui_set_group.cursor_size_entry.setDisabled(False)
self.ui.general_defaults_form.general_gui_set_group.cursor_size_lbl.setDisabled(False)
self.app_cursor = self.plotcanvas.new_cursor()
else:
self.ui.general_defaults_form.general_gui_set_group.cursor_size_entry.setDisabled(True)
self.ui.general_defaults_form.general_gui_set_group.cursor_size_lbl.setDisabled(True)
self.app_cursor = self.plotcanvas.new_cursor(big=True)
if self.ui.grid_snap_btn.isChecked():
self.app_cursor.enabled = True
else:
self.app_cursor.enabled = False
def on_cnc_custom_parameters(self, signal_text):
if signal_text == 'Parameters':