Extract Employee View into own dir
This commit is contained in:
@@ -49,14 +49,11 @@ class EmployeeModel(QAbstractTableModel):
|
||||
def columnCount(self, parent= QModelIndex()):
|
||||
return len(self.__visible_columns) - self.__col_skip
|
||||
|
||||
@Slot(str, bool, bool, bool)
|
||||
def viewCriterion(self, criterion, processed, fired, every_state):
|
||||
self.__everyone = True if criterion == 'Alle' else False
|
||||
if self.__everyone and criterion != "Alle":
|
||||
self.__col_skip = 2
|
||||
else:
|
||||
self.__col_skip = 2
|
||||
self.__getData(criterion, processed, fired, every_state)
|
||||
@Slot(str)
|
||||
def viewCriterion(self, criterion):
|
||||
self.__everyone = criterion == 'Alle'
|
||||
self.__col_skip = 2
|
||||
self.__getData(criterion, criterion == 'Erledigt', False, criterion == 'Alle')
|
||||
|
||||
def data(self, index, role= Qt.DisplayRole):
|
||||
if role == Qt.DisplayRole:
|
||||
|
||||
Reference in New Issue
Block a user