Test
This commit is contained in:
@@ -23,8 +23,6 @@ GridLayout
|
|||||||
editable: true
|
editable: true
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.columnSpan: 3
|
Layout.columnSpan: 3
|
||||||
onEditTextChanged: checkFields()
|
|
||||||
onCurrentTextChanged: checkFields()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//// New grid row
|
//// New grid row
|
||||||
@@ -234,8 +232,7 @@ GridLayout
|
|||||||
|
|
||||||
function checkObjectField()
|
function checkObjectField()
|
||||||
{
|
{
|
||||||
return ((business.editText.trim() || business.currentText.trim()) &&
|
return (street.text.trim() && houseno.text.trim() &&
|
||||||
street.text.trim() && houseno.text.trim() &&
|
|
||||||
(postcode.editText.trim() || postcode.currentText.trim()) &&
|
(postcode.editText.trim() || postcode.currentText.trim()) &&
|
||||||
(city.editText.trim() || city.currentText.trim()) &&
|
(city.editText.trim() || city.currentText.trim()) &&
|
||||||
cleansing.text.trim())
|
cleansing.text.trim())
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ class EmployeeModel(QAbstractTableModel):
|
|||||||
self.__employee_dao.newEmployeeAdded.connect(self.__refreshView)
|
self.__employee_dao.newEmployeeAdded.connect(self.__refreshView)
|
||||||
self.__conf = ConfigLoader().getConfig()
|
self.__conf = ConfigLoader().getConfig()
|
||||||
self.__key = self.__conf['pyqcrm']['ENCRYPTION_KEY']
|
self.__key = self.__conf['pyqcrm']['ENCRYPTION_KEY']
|
||||||
|
print(self.__key)
|
||||||
self.__getData()
|
self.__getData()
|
||||||
|
|
||||||
@Slot(dict, bool)
|
@Slot(dict, bool)
|
||||||
|
|||||||
Reference in New Issue
Block a user