Oscar jinxed
This commit is contained in:
@@ -23,6 +23,7 @@ GridLayout
|
||||
id: title
|
||||
Layout.fillWidth: true
|
||||
editable: false
|
||||
model: ["Herr", "Frau"]
|
||||
}
|
||||
Label
|
||||
{
|
||||
@@ -82,6 +83,18 @@ GridLayout
|
||||
id: telephonecontact
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
Label
|
||||
{
|
||||
text: qsTr("Handy")
|
||||
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
||||
}
|
||||
TextField
|
||||
{
|
||||
property string name: "cellphone"
|
||||
id: cellphone
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
Label
|
||||
{
|
||||
text: qsTr("Geburtsdatum")
|
||||
@@ -105,6 +118,7 @@ GridLayout
|
||||
id: rank
|
||||
Layout.fillWidth: true
|
||||
editable: false
|
||||
model: ["Nein", "Ja"]
|
||||
}
|
||||
Label
|
||||
{
|
||||
|
||||
@@ -131,6 +131,18 @@ ColumnLayout
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
Label
|
||||
{
|
||||
text: qsTr("Handy")
|
||||
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
|
||||
}
|
||||
TextField
|
||||
{
|
||||
property string name: "cellphone"
|
||||
id: cellphone
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
Label
|
||||
{
|
||||
text: qsTr("E-Mail")
|
||||
@@ -241,8 +253,8 @@ ColumnLayout
|
||||
if (!checkAddContact.checked)
|
||||
{
|
||||
new_business = JsLib.addBusiness(businessGrid)
|
||||
bm.addBusiness(new_business)
|
||||
appLoader.source = "CustomerTables.qml"
|
||||
business_model.addBusiness(new_business)
|
||||
appLoader.source = "CustomerTable.qml"
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -252,9 +264,9 @@ ColumnLayout
|
||||
var new_contact = JsLib.addBusiness(addContactLayout)
|
||||
// bm.setContact(new_contact, contact_id)
|
||||
// bm.addBusiness(new_business, contact_id)
|
||||
contact_model.getContacts()
|
||||
|
||||
appLoader.source = "CustomerTables.qml"
|
||||
contact_id = contact_model.addContact(new_contact)
|
||||
console.log(contact_id)
|
||||
appLoader.source = "CustomerTable.qml"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user