[web] icon displayed / deducted option

This commit is contained in:
Vinícius Moreira
2019-12-19 13:34:13 -03:00
parent 7cf79a9cff
commit 894e2d9988
6 changed files with 31 additions and 2 deletions

View File

@@ -74,11 +74,13 @@ class ComboBoxQt(QComboBox):
if model.value and model.value == op: # default
self.setCurrentIndex(idx)
self.setToolTip(model.value.tooltip)
self.currentIndexChanged.connect(self._set_selected)
def _set_selected(self, idx: int):
self.model.value = self.model.options[idx]
self.setToolTip(self.model.value.tooltip)
class RadioSelectQt(QGroupBox):