def createEditor(self, parent, option, index): qde = QStyledItemDelegate.createEditor(self, parent, option, index) qde.setDisplayFormat(self.format) qde.setMinimumDateTime(UNDEFINED_QDATETIME) qde.setSpecialValueText(_('Undefined')) qde.setCalendarPopup(True) return qde
def createEditor(self, parent, option, index): qde = QStyledItemDelegate.createEditor(self, parent, option, index) qde.setDisplayFormat(self.format) qde.setMinimumDateTime(UNDEFINED_QDATETIME) qde.setSpecialValueText(_('Undefined')) qde.setCalendarPopup(True) return qde
def createEditor(self, parent, option, index): sb = QStyledItemDelegate.createEditor(self, parent, option, index) sb.setMinimum(0) sb.setMaximum(5) sb.setSuffix(' ' + _('stars')) return sb
def createEditor(self, parent, option, index): sb = QStyledItemDelegate.createEditor(self, parent, option, index) sb.setMinimum(0) sb.setMaximum(5) sb.setSuffix(' ' + _('stars')) return sb