Corrected references in QML frames
This commit is contained in:
@@ -4,6 +4,8 @@ import QtQuick.Layouts
|
|||||||
|
|
||||||
Frame
|
Frame
|
||||||
{
|
{
|
||||||
|
id: addContactFrame
|
||||||
|
property alias contactGrid: addContactLayout
|
||||||
Layout.alignment: Qt.AlignTop
|
Layout.alignment: Qt.AlignTop
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
GridLayout
|
GridLayout
|
||||||
@@ -186,6 +188,7 @@ GridLayout
|
|||||||
editable: false
|
editable: false
|
||||||
model: ["Nein", "Ja"]
|
model: ["Nein", "Ja"]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function checkContactField()
|
function checkContactField()
|
||||||
{
|
{
|
||||||
@@ -199,4 +202,3 @@ GridLayout
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ ColumnLayout
|
|||||||
|
|
||||||
AddContact
|
AddContact
|
||||||
{
|
{
|
||||||
//id: addContactLayout
|
id: addContactFrame
|
||||||
visible: checkAddContact.checked
|
visible: checkAddContact.checked
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -78,7 +78,7 @@ ColumnLayout
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
new_business = JsLib.addBusiness(customerView)
|
new_business = JsLib.addBusiness(customerView)
|
||||||
var new_contact = JsLib.addBusiness(addContactLayout)
|
var new_contact = JsLib.addBusiness(addContactFrame.contactGrid)
|
||||||
contact_model.addContact(new_contact)
|
contact_model.addContact(new_contact)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -108,7 +108,7 @@ ColumnLayout
|
|||||||
{
|
{
|
||||||
if(checkAddContact.checked)
|
if(checkAddContact.checked)
|
||||||
{
|
{
|
||||||
if(!customerView.checkBusinessField() || !addContactLayout.checkContactField())
|
if(!customerView.checkBusinessField() || !addContactFrame.checkContactField())
|
||||||
saveBtn.enabled = false
|
saveBtn.enabled = false
|
||||||
else
|
else
|
||||||
saveBtn.enabled = true
|
saveBtn.enabled = true
|
||||||
|
|||||||
Reference in New Issue
Block a user