Commit e2f01f1f authored by Flavio TARSETTI's avatar Flavio TARSETTI

[resources/widgets][toolchain/experiment editor] patch resources alias

parent 304bd8ff
Pipeline #35617 failed with stage
in 5 minutes and 50 seconds
This diff is collapsed.
......@@ -127,7 +127,7 @@ class EnvironmentModel(QStandardItemModel):
def add_row(type_, data):
visual_name = "{name} ({version})".format(**data)
icon = QIcon(f":/resources/img/{type_}")
icon = QIcon(f":/resources/{type_}")
self.appendRow(
[
QStandardItem(icon, visual_name),
......@@ -571,7 +571,7 @@ class ExecutionPropertiesEditor(AbstractBaseEditor):
self.queue_combobox.setModel(self.queue_model)
self.parameters_editor = AlgorithmParametersEditor(prefix_path)
self.remap_button = QPushButton(QIcon(":/resources/img/remap"), "")
self.remap_button = QPushButton(QIcon(":/resources/remap"), "")
self.remap_button.setObjectName("remap")
self.remap_button.setToolTip(self.tr("Remap input and outputs"))
reset_button = QPushButton(
......
......@@ -1426,7 +1426,7 @@ class Toolchain(QWidget):
self.autonomous_loop_evaluator_list = []
config_data = {}
_file = QFile(":/resources/json/toolchain_style_config")
_file = QFile(":/resources/toolchain_style_config")
if _file.open(QFile.ReadOnly | QIODevice.Text):
config_data = json.loads(_file.readAll().data().decode("utf-8"))
......@@ -1443,22 +1443,22 @@ class Toolchain(QWidget):
self.loop_button = QPushButton()
self.loop_button.setToolTip("Loop")
self.loop_button.setIcon(QIcon(":/resources/img/loop"))
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(":/resources/img/dataset"))
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(":/resources/img/block"))
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(":/resources/img/analyzer"))
self.analyzer_button.setIcon(QIcon(":/resources/analyzer"))
self.analyzer_edit_menu = QMenu(self)
self.toolbar.addWidget(self.dataset_button)
......
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