Use DelegateCB with enum columns

This commit is contained in:
Charles Haley
2011-01-18 17:31:03 +00:00
parent fcb67af97e
commit 25fa78ed6e
+1 -1
View File
@@ -292,7 +292,7 @@ class CcEnumDelegate(QStyledItemDelegate): # {{{
def createEditor(self, parent, option, index):
m = index.model()
col = m.column_map[index.column()]
editor = QComboBox(parent)
editor = DelegateCB(parent)
editor.addItem('')
for v in m.custom_columns[col]['display']['enum_values']:
editor.addItem(v)