Commit f16d7629 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[widgets][dataformateditor] Add tooltip to buttons

This will make things clearer for the user.
parent 2e5a995e
......@@ -186,6 +186,8 @@ class DataformatWidget(DataformatBaseWidget):
super().__init__(parent)
self.dataformat_model = dataformat_model
self.delete_button.setToolTip(self.tr("Remove format"))
self.dataformat_box = QComboBox()
self.dataformat_box.setModel(self.dataformat_model)
......@@ -227,6 +229,8 @@ class DataformatObjectWidget(DataformatBaseWidget):
super().__init__(parent)
self.dataformat_model = dataformat_model
self.delete_button.setToolTip(self.tr("Remove object"))
self.dataformat_widgets = []
self.dataformat_box = QGroupBox()
......@@ -356,6 +360,7 @@ class DimensionWidget(DataformatBaseWidget):
super().__init__(parent)
self.setHasName(False)
self.delete_button.setToolTip(self.tr("Remove dimension"))
self.dimension_spin_box = QSpinBox()
self.form_layout.addRow(self.tr("Dimension"), self.dimension_spin_box)
......@@ -399,11 +404,14 @@ class DataformatArrayWidget(DataformatBaseWidget):
super().__init__(parent)
self.dataformat_model = dataformat_model
self.delete_button.setToolTip(self.tr("Remove array"))
self.dimension_widgets = []
self.dataformat_widget = None
self.dimension_box = QGroupBox(self.tr("Dimensions"))
self.add_dimension_button = QPushButton(self.tr("+"))
self.add_dimension_button.setToolTip(self.tr("Add dimension"))
self.add_dimension_button.setFixedSize(30, 30)
add_dimension_layout = create_button_layout(self.add_dimension_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