Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Larchenko <victor99992@gmail.com>2016-10-21 13:06:28 +0300
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>2016-12-23 23:53:15 +0300
commit84add5be84f7ef95d438c047dc8a4231a4eda51c (patch)
treeb0afd302f37ce37af75755afa42b32967bf2a485 /cura/PrintInformation.py
parent9da00563e544d0a3391f2336aee4f10e31aa4af4 (diff)
T466: Added disabling of view button
Diffstat (limited to 'cura/PrintInformation.py')
-rw-r--r--cura/PrintInformation.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/cura/PrintInformation.py b/cura/PrintInformation.py
index fa0b43993e..4379ec72ca 100644
--- a/cura/PrintInformation.py
+++ b/cura/PrintInformation.py
@@ -63,6 +63,16 @@ class PrintInformation(QObject):
currentPrintTimeChanged = pyqtSignal()
+ preSlicedChanged = pyqtSignal()
+
+ @pyqtProperty(bool, notify=preSlicedChanged)
+ def isPreSliced(self):
+ return self._pre_sliced
+
+ def setPreSliced(self, pre_sliced):
+ self._pre_sliced = pre_sliced
+ self.preSlicedChanged.emit()
+
@pyqtProperty(Duration, notify = currentPrintTimeChanged)
def currentPrintTime(self):
return self._current_print_time