Folder structure in Gui changed, window size to fullscreen, scrollview in AddCustomer
This commit is contained in:
@@ -19,12 +19,16 @@ class AddressModel(QAbstractListModel):
|
||||
elif role == PyqcrmDataRoles.CITY_ROLE:
|
||||
data = self.__address_data[row][4]
|
||||
return data
|
||||
elif role == PyqcrmDataRoles.COUNTRY_ROLE:
|
||||
data = self.__address_data[row][3]
|
||||
return data
|
||||
return None
|
||||
|
||||
def roleNames(self):
|
||||
return {
|
||||
Qt.DisplayRole: b"display",
|
||||
PyqcrmDataRoles.CITY_ROLE: b"city",
|
||||
PyqcrmDataRoles.COUNTRY_ROLE: b"country"
|
||||
}
|
||||
|
||||
def setData(self):
|
||||
|
||||
@@ -6,5 +6,6 @@ from enum import IntEnum
|
||||
class PyqcrmDataRoles(IntEnum):
|
||||
CITY_ROLE = Qt.UserRole + 100
|
||||
STREET_IN_POSTCODE = CITY_ROLE + 1
|
||||
COUNTRY_ROLE = CITY_ROLE + 100
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user