Commit 5b2bec1b authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[widgets][algorithmeditor] Add tooltip to all buttons

parent 303106cf
......@@ -347,6 +347,8 @@ class ParameterEditor(DeletableEditor):
def __init__(self, parent=None):
super().__init__(parent=None)
self.delete_button.setToolTip(self.tr("Remove parameter"))
self.name_lineedit = QLineEdit()
self.name_lineedit.setValidator(
QRegularExpressionValidator(NAME_REGULAREXPRESSION, self)
......@@ -380,6 +382,8 @@ class ResultEditor(DeletableEditor):
def __init__(self, dataformat_model, parent=None):
super().__init__(parent)
self.delete_button.setToolTip(self.tr("Remove result"))
proxy_model = QSortFilterProxyModel()
proxy_model.setSourceModel(dataformat_model)
proxy_model.setFilterRegExp(
......@@ -514,9 +518,15 @@ class GroupEditor(DeletableEditor):
self.dataformat_model = dataformat_model
self.delete_button.setToolTip(self.tr("Remove group"))
self.name_lineedit = QLineEdit()
self.inputs_widget = IOWidget(self.tr("Inputs"), self.dataformat_model)
self.inputs_widget.add_button.setToolTip(self.tr("Add input"))
self.inputs_widget.remove_button.setToolTip(self.tr("Remove input"))
self.outputs_widget = IOWidget(self.tr("Outputs"), self.dataformat_model)
self.outputs_widget.add_button.setToolTip(self.tr("Add output"))
self.outputs_widget.remove_button.setToolTip(self.tr("Remove output"))
self.unsynchronized_checkbox = QCheckBox(self.tr("Unsynchronized"))
self.groupbox = QGroupBox()
self.loop_groupbox = QGroupBox(self.tr("Loop"))
......@@ -612,14 +622,17 @@ class AlgorithmEditor(AbstractAssetEditor):
self.group_list_widget = EditorListWidget()
self.add_group_button = QPushButton(self.tr("+"))
self.add_group_button.setToolTip(self.tr("Add group"))
self.add_group_button.setFixedSize(30, 30)
self.parameter_list_widget = EditorListWidget()
self.add_parameter_button = QPushButton(self.tr("+"))
self.add_parameter_button.setToolTip(self.tr("Add parameter"))
self.add_parameter_button.setFixedSize(30, 30)
self.result_list_widget = EditorListWidget()
self.add_result_button = QPushButton(self.tr("+"))
self.add_result_button.setToolTip(self.tr("Add result"))
self.add_result_button.setFixedSize(30, 30)
self.dataformat_model = DataFormatModel()
......
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