Store extruder position of quality groups as int

Instead of as a string with a number in it.
For the actual global stack's extruders we still need to convert to string, sadly. I could go refactor that too, but then I won't be going home until 23 o'clock or something.

Contributes to issue CURA-4606.
This commit is contained in:
Ghostkeeper 2018-03-12 17:07:52 +01:00
parent 981c47ed87
commit d904f677bc
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A
4 changed files with 14 additions and 13 deletions

View file

@ -1,7 +1,7 @@
# Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from typing import Optional, List
from typing import Dict, Optional, List
from PyQt5.QtCore import QObject, pyqtSlot
@ -25,7 +25,7 @@ class QualityGroup(QObject):
super().__init__(parent)
self.name = name
self.node_for_global = None # type: Optional["QualityGroup"]
self.nodes_for_extruders = dict() # position str -> QualityGroup
self.nodes_for_extruders = {} # type: Dict[int, "QualityGroup"]
self.quality_type = quality_type
self.is_available = False