Commit 09ef7d7b authored by Flavio TARSETTI's avatar Flavio TARSETTI

[resources/widgets][toolchaineditor] refactored resources loading

parent 99f52216
......@@ -1435,22 +1435,22 @@ class Toolchain(QWidget):
self.loop_button = QPushButton()
self.loop_button.setToolTip("Loop")
self.loop_button.setIcon(QIcon("beat/editor/widgets/loop_icon.png"))
self.loop_button.setIcon(QIcon(":/resources/loop"))
self.loop_button.clicked.connect(self.add_loop_block)
self.dataset_button = QPushButton()
self.dataset_button.setToolTip("Dataset")
self.dataset_button.setIcon(QIcon("beat/editor/widgets/dataset_icon.png"))
self.dataset_button.setIcon(QIcon(":/resources/dataset"))
self.dataset_edit_menu = QMenu(self)
self.block_button = QPushButton()
self.block_button.setToolTip("Block")
self.block_button.setIcon(QIcon("beat/editor/widgets/block_icon.png"))
self.block_button.setIcon(QIcon(":/resources/block"))
self.block_edit_menu = QMenu(self)
self.analyzer_button = QPushButton()
self.analyzer_button.setToolTip("Analyzer")
self.analyzer_button.setIcon(QIcon("beat/editor/widgets/analyzer_icon.png"))
self.analyzer_button.setIcon(QIcon(":/resources/analyzer"))
self.analyzer_edit_menu = QMenu(self)
self.toolbar.addWidget(self.dataset_button)
......
......@@ -3,5 +3,9 @@
<file alias="remap">resources/remap.png</file>
<file alias="docker">resources/icons8-docker-50.png</file>
<file alias="remote">resources/icons8-cloud-development-50.png</file>
<file alias="dataset">resources/dataset.png</file>
<file alias="block">resources/block.png</file>
<file alias="loop">resources/loop.png</file>
<file alias="analyzer">resources/analyzer.png</file>
</qresource>
</RCC>
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