PLZ hinzugefügt
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user