mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 02:24:16 +02:00
basic installation options
This commit is contained in:
@@ -63,6 +63,9 @@ class ComboBoxQt(QComboBox):
|
||||
for idx, op in enumerate(self.model.options):
|
||||
self.addItem(op.label, op.value)
|
||||
|
||||
if op.tooltip:
|
||||
self.setItemData(idx, op.tooltip, Qt.ToolTipRole)
|
||||
|
||||
if model.value and model.value == op: # default
|
||||
self.setCurrentIndex(idx)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user