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:
Diffstat (limited to 'plugins/Toolbox/src/ConfigsModel.py')
-rw-r--r--plugins/Toolbox/src/ConfigsModel.py38
1 files changed, 0 insertions, 38 deletions
diff --git a/plugins/Toolbox/src/ConfigsModel.py b/plugins/Toolbox/src/ConfigsModel.py
deleted file mode 100644
index a53817653f..0000000000
--- a/plugins/Toolbox/src/ConfigsModel.py
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright (c) 2018 Ultimaker B.V.
-# Cura is released under the terms of the LGPLv3 or higher.
-
-from PyQt5.QtCore import Qt
-
-from UM.Qt.ListModel import ListModel
-
-
-class ConfigsModel(ListModel):
- """Model that holds supported configurations (for material/quality packages)."""
-
- def __init__(self, parent = None):
- super().__init__(parent)
-
- self._configs = None
-
- self.addRoleName(Qt.UserRole + 1, "machine")
- self.addRoleName(Qt.UserRole + 2, "print_core")
- self.addRoleName(Qt.UserRole + 3, "build_plate")
- self.addRoleName(Qt.UserRole + 4, "support_material")
- self.addRoleName(Qt.UserRole + 5, "quality")
-
- def setConfigs(self, configs):
- self._configs = configs
- self._update()
-
- def _update(self):
- items = []
- for item in self._configs:
- items.append({
- "machine": item["machine"],
- "print_core": item["print_core"],
- "build_plate": item["build_plate"],
- "support_material": item["support_material"],
- "quality": item["quality"]
- })
-
- self.setItems(items)