Add documentation for timers in Material and Quality managers

This commit is contained in:
Lipu Fei 2018-03-01 10:59:39 +01:00
parent 3e23659c79
commit 2dd7be1271
2 changed files with 6 additions and 0 deletions

View file

@ -39,6 +39,9 @@ class MaterialManager(QObject):
self._default_machine_definition_id = "fdmprinter"
self._default_approximate_diameter_for_quality_search = "3"
# When a material gets added/imported, there can be more than one InstanceContainers. In those cases, we don't
# want to react on every container/metadata changed signal. The timer here is to buffer it a bit so we don't
# react too many time.
self._update_timer = QTimer(self)
self._update_timer.setInterval(300)
self._update_timer.setSingleShot(True)