- fixed errors in Toggle Axis
- fixed error with shortcut key triggering twice the keyPressEvent when in the Project List View
This commit is contained in:
parent
2524e6bd59
commit
2be35e4248
|
@ -1562,7 +1562,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
||||||
|
|
||||||
# Toggle axis
|
# Toggle axis
|
||||||
if key == QtCore.Qt.Key_G:
|
if key == QtCore.Qt.Key_G:
|
||||||
if self.toggle_axis is False:
|
if self.app.toggle_axis is False:
|
||||||
self.app.plotcanvas.v_line.set_data(color=(0.70, 0.3, 0.3, 1.0))
|
self.app.plotcanvas.v_line.set_data(color=(0.70, 0.3, 0.3, 1.0))
|
||||||
self.app.plotcanvas.h_line.set_data(color=(0.70, 0.3, 0.3, 1.0))
|
self.app.plotcanvas.h_line.set_data(color=(0.70, 0.3, 0.3, 1.0))
|
||||||
self.app.plotcanvas.redraw()
|
self.app.plotcanvas.redraw()
|
||||||
|
@ -1571,7 +1571,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
||||||
self.app.plotcanvas.v_line.set_data(color=(0.0, 0.0, 0.0, 0.0))
|
self.app.plotcanvas.v_line.set_data(color=(0.0, 0.0, 0.0, 0.0))
|
||||||
|
|
||||||
self.app.plotcanvas.h_line.set_data(color=(0.0, 0.0, 0.0, 0.0))
|
self.app.plotcanvas.h_line.set_data(color=(0.0, 0.0, 0.0, 0.0))
|
||||||
self.appplotcanvas.redraw()
|
self.app.plotcanvas.redraw()
|
||||||
self.app.toggle_axis = False
|
self.app.toggle_axis = False
|
||||||
|
|
||||||
# Open Preferences Window
|
# Open Preferences Window
|
||||||
|
|
|
@ -36,7 +36,7 @@ class KeySensitiveListView(QtWidgets.QTreeView):
|
||||||
keyPressed = QtCore.pyqtSignal(int)
|
keyPressed = QtCore.pyqtSignal(int)
|
||||||
|
|
||||||
def keyPressEvent(self, event):
|
def keyPressEvent(self, event):
|
||||||
super(KeySensitiveListView, self).keyPressEvent(event)
|
# super(KeySensitiveListView, self).keyPressEvent(event)
|
||||||
self.keyPressed.emit(event.key())
|
self.keyPressed.emit(event.key())
|
||||||
|
|
||||||
def dragEnterEvent(self, event):
|
def dragEnterEvent(self, event):
|
||||||
|
|
|
@ -13,7 +13,8 @@ CAD program, and create G-Code for Isolation routing.
|
||||||
|
|
||||||
- when shortcut keys 1, 2, 3 (tab selection) are activated, if the splitter left side (the notebook) is hidden it will be mae visible
|
- when shortcut keys 1, 2, 3 (tab selection) are activated, if the splitter left side (the notebook) is hidden it will be mae visible
|
||||||
- changed the menu entry Toggle Grid name to Toggle Grid Snap
|
- changed the menu entry Toggle Grid name to Toggle Grid Snap
|
||||||
|
- fixed errors in Toggle Axis
|
||||||
|
- fixed error with shortcut key triggering twice the keyPressEvent when in the Project List View
|
||||||
|
|
||||||
7.02.2019
|
7.02.2019
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue