mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Use properties instead of slots for min & max flow
This fixes some update issues in the simulation view display CURA-8196
This commit is contained in:
parent
5d3b442efb
commit
5bfb0fc437
2 changed files with 6 additions and 7 deletions
|
@ -126,15 +126,14 @@ class SimulationViewProxy(QObject):
|
|||
def minLineWidth(self):
|
||||
return self._simulation_view.getMinLineWidth()
|
||||
|
||||
@pyqtSlot(result=float)
|
||||
def getMaxFlowRate(self):
|
||||
@pyqtProperty(float, notify=colorSchemeLimitsChanged)
|
||||
def maxFlowRate(self):
|
||||
return self._simulation_view.getMaxFlowRate()
|
||||
|
||||
@pyqtSlot(result=float)
|
||||
def getMinFlowRate(self):
|
||||
@pyqtProperty(float, notify=colorSchemeLimitsChanged)
|
||||
def minFlowRate(self):
|
||||
return self._simulation_view.getMinFlowRate()
|
||||
|
||||
|
||||
# Opacity 0..1
|
||||
@pyqtSlot(int, float)
|
||||
def setExtruderOpacity(self, extruder_nr, opacity):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue