示例#1
0
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))
示例#2
0
def setDelegatesUsers(parent, view):
    view.setItemDelegateForColumn(1, NotEmptyTextColumnDelegate.NotEmptyTextColumnDelegate(parent))
    view.setItemDelegateForColumn(2, NotEmptyTextColumnDelegate.NotEmptyTextColumnDelegate(parent))
示例#3
0
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))
示例#4
0
def setDelegatesUnits(parent, view):
    view.setItemDelegateForColumn(1, NotEmptyTextColumnDelegate.NotEmptyTextColumnDelegate(parent))
    view.setItemDelegateForColumn(2, UnsignedIntegerColumnDelegate.UnsignedIntegerColumnDelegate(1, parent=parent))
示例#5
0
def setDelegatesIngredients(parent, view):
    view.setItemDelegateForColumn(1, NotEmptyTextColumnDelegate.NotEmptyTextColumnDelegate(parent))
    view.setItemDelegateForColumn(3, UnsignedIntegerColumnDelegate.UnsignedIntegerColumnDelegate(parent=parent))
    view.setItemDelegateForColumn(4, UnsignedDoubleColumnDelegate.UnsignedDoubleColumnDelegate(parent=parent))