Ejemplo n.º 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))
Ejemplo n.º 2
0
def setDelegatesUsers(parent, view):
    view.setItemDelegateForColumn(1, NotEmptyTextColumnDelegate.NotEmptyTextColumnDelegate(parent))
    view.setItemDelegateForColumn(2, NotEmptyTextColumnDelegate.NotEmptyTextColumnDelegate(parent))
Ejemplo n.º 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))
Ejemplo n.º 4
0
def setDelegatesUnits(parent, view):
    view.setItemDelegateForColumn(1, NotEmptyTextColumnDelegate.NotEmptyTextColumnDelegate(parent))
    view.setItemDelegateForColumn(2, UnsignedIntegerColumnDelegate.UnsignedIntegerColumnDelegate(1, parent=parent))
Ejemplo n.º 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))