A lot of changes going on
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from PySide6.QtCore import QAbstractTableModel, QModelIndex, Qt, Slot, Signal
|
||||
from .ObjectDAO import ObjectDAO
|
||||
from ..ConfigLoader import ConfigLoader
|
||||
from ..PyqcrmDataRoles import PyqcrmDataRoles
|
||||
import re
|
||||
import json
|
||||
|
||||
@@ -66,8 +67,16 @@ class ObjectModel(QAbstractTableModel):
|
||||
if object_col > 4 and tr:
|
||||
tr = re.sub("Keine Angabe ","", tr)
|
||||
return tr
|
||||
elif role == PyqcrmDataRoles.STREET_IN_POSTCODE:
|
||||
pass
|
||||
return None
|
||||
|
||||
def roleNames(self):
|
||||
return {
|
||||
Qt.DisplayRole: b"display",
|
||||
PyqcrmDataRoles.STREET_IN_POSTCODE: b"StreetInPostcode",
|
||||
}
|
||||
|
||||
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_skip]
|
||||
|
||||
Reference in New Issue
Block a user