def setDelegatesEmployees(parent, view): view.setItemDelegateForColumn(1, NotEmptyTextColumnDelegate.NotEmptyTextColumnDelegate(parent)) view.setItemDelegateForColumn(2, NotEmptyTextColumnDelegate.NotEmptyTextColumnDelegate(parent)) view.setItemDelegateForColumn(3, NotEmptyTextColumnDelegate.NotEmptyTextColumnDelegate(parent)) view.setItemDelegateForColumn(4, UnsignedDoubleColumnDelegate. UnsignedDoubleColumnDelegate(QDataBase.minSalary, parent=parent)) view.setItemDelegateForColumn(5, NotEmptyTextColumnDelegate.NotEmptyTextColumnDelegate(parent))
def setDelegatesUsers(parent, view): view.setItemDelegateForColumn(1, NotEmptyTextColumnDelegate.NotEmptyTextColumnDelegate(parent)) view.setItemDelegateForColumn(2, NotEmptyTextColumnDelegate.NotEmptyTextColumnDelegate(parent))
def setDelegatesPastries(parent, view): view.setItemDelegateForColumn(1, NotEmptyTextColumnDelegate.NotEmptyTextColumnDelegate(parent)) view.setItemDelegateForColumn(2, UnsignedIntegerColumnDelegate.UnsignedIntegerColumnDelegate(parent=parent)) view.setItemDelegateForColumn(3, NoneColumnDelegate.NoneColumnDelegate(parent)) view.setItemDelegateForColumn(4, NoneColumnDelegate.NoneColumnDelegate(parent)) view.setItemDelegateForColumn(5, UnsignedDoubleColumnDelegate.UnsignedDoubleColumnDelegate(parent=parent))
def setDelegatesUnits(parent, view): view.setItemDelegateForColumn(1, NotEmptyTextColumnDelegate.NotEmptyTextColumnDelegate(parent)) view.setItemDelegateForColumn(2, UnsignedIntegerColumnDelegate.UnsignedIntegerColumnDelegate(1, parent=parent))
def setDelegatesIngredients(parent, view): view.setItemDelegateForColumn(1, NotEmptyTextColumnDelegate.NotEmptyTextColumnDelegate(parent)) view.setItemDelegateForColumn(3, UnsignedIntegerColumnDelegate.UnsignedIntegerColumnDelegate(parent=parent)) view.setItemDelegateForColumn(4, UnsignedDoubleColumnDelegate.UnsignedDoubleColumnDelegate(parent=parent))