- redraw_on_top_on_project_click works only for left mouse clicks on the Project objects list
This commit is contained in:
@@ -15,6 +15,7 @@ CHANGELOG for FlatCAM beta
|
|||||||
- plotting visuals in 3d graphic mode will no longer create some unnecessary lists
|
- plotting visuals in 3d graphic mode will no longer create some unnecessary lists
|
||||||
- made sure that the `redraw_on_top_on_project_click` works properly and only on mouse click release in the Project list
|
- made sure that the `redraw_on_top_on_project_click` works properly and only on mouse click release in the Project list
|
||||||
- made sure that the `redraw_on_top_on_project_click` works only on single object selections
|
- made sure that the `redraw_on_top_on_project_click` works only on single object selections
|
||||||
|
- `redraw_on_top_on_project_click` works only for left mouse clicks on the Project objects list
|
||||||
|
|
||||||
10.02.2022
|
10.02.2022
|
||||||
|
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ class EventSensitiveListView(QtWidgets.QTreeView):
|
|||||||
# self.dropped_obj = None
|
# self.dropped_obj = None
|
||||||
|
|
||||||
keyPressed = QtCore.pyqtSignal(int)
|
keyPressed = QtCore.pyqtSignal(int)
|
||||||
mouseReleased = QtCore.pyqtSignal(int)
|
mouseReleased = QtCore.pyqtSignal(object)
|
||||||
|
|
||||||
def keyPressEvent(self, event):
|
def keyPressEvent(self, event):
|
||||||
# super(EventSensitiveListView, self).keyPressEvent(event)
|
# super(EventSensitiveListView, self).keyPressEvent(event)
|
||||||
@@ -1010,10 +1010,12 @@ class ObjectCollection(QtCore.QAbstractItemModel):
|
|||||||
if len(self.get_selected()) == 1:
|
if len(self.get_selected()) == 1:
|
||||||
self.app.proj_selection_changed.emit(current, previous)
|
self.app.proj_selection_changed.emit(current, previous)
|
||||||
|
|
||||||
def on_list_click_release(self):
|
def on_list_click_release(self, button):
|
||||||
# on Gerber object selection it will redrawn on top of the other Gerber objects
|
# works only for mouse button 1 (left click)
|
||||||
if self.app.defaults["gerber_plot_on_select"] is True:
|
if button == Qt.MouseButton.LeftButton:
|
||||||
self.app.gerber_redraw()
|
# on Gerber object selection it will redrawn on top of the other Gerber objects
|
||||||
|
if self.app.defaults["gerber_plot_on_select"] is True:
|
||||||
|
self.app.gerber_redraw()
|
||||||
|
|
||||||
def on_item_activated(self, index):
|
def on_item_activated(self, index):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user