PLZ hinzugefügt

This commit is contained in:
2024-12-05 16:53:16 +01:00
parent 50720596c6
commit 5865b33c1d
9 changed files with 1903 additions and 264 deletions

View File

@@ -75,17 +75,17 @@ class BusinessModel(QAbstractTableModel):
return len (self.__data)
def columnCount(self, parent= QModelIndex()):
return len(self.__visible_columns)
return len(self.__visible_columns) - 1
def data(self, index, role= Qt.DisplayRole):
if role == Qt.DisplayRole:
row = self.__data[index.row()]
return row[index.column()]
return row[index.column() + 1]
return None
def headerData(self, section, orientation, role= Qt.DisplayRole):
if orientation == Qt.Horizontal and role ==Qt.DisplayRole:
self.__col_name = self.__visible_columns[section]
self.__col_name = self.__visible_columns[section + 1]
return self.__col_name
return super().headerData(section, orientation, role)
@@ -108,7 +108,15 @@ class BusinessModel(QAbstractTableModel):
@Slot(dict)
def addBusiness(self, business):
# BusinessDAO().addBusiness(business)
BusinessDAO().addPlz()
@Slot(dict)
def setContact(self, contact):
pass
def updateTable(self):
pass