Commit 15c932be authored by Flavio TARSETTI's avatar Flavio TARSETTI
Browse files

[widgets] Toolchain class renaming and improvement

parent df08a2eb
Pipeline #37741 passed with stage
in 15 minutes and 28 seconds
......@@ -1409,7 +1409,7 @@ class ToolchainView(QGraphicsView):
self.toolchain.dataChanged.emit()
class Toolchain(QWidget):
class ToolchainWidget(QWidget):
"""Toolchain designer"""
dataChanged = pyqtSignal()
......@@ -1429,8 +1429,8 @@ class Toolchain(QWidget):
if file_.open(QFile.ReadOnly | QFile.Text):
config_data = json.loads(file_.readAll().data().decode("utf-8"))
self.scene_config = config_data["toolchainscene_config"]
self.scene = ToolchainScene(self.scene_config)
scene_config = config_data["toolchainscene_config"]
self.scene = ToolchainScene(scene_config)
self.block_config = config_data["block_config"]
self.connection_config = config_data["connection_config"]
......@@ -1829,7 +1829,7 @@ class ToolchainEditor(AbstractAssetEditor):
self.toolchain_model = AssetModel()
self.toolchain_model.asset_type = AssetType.TOOLCHAIN
self.toolchain = Toolchain()
self.toolchain = ToolchainWidget()
self.layout().addWidget(self.toolchain, 2)
self.layout().addStretch()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment