Add Customer/Object/Employee working - DEBUGGING anchor Errors done

This commit is contained in:
2025-05-23 11:23:16 +02:00
parent 75427b1326
commit 096f60a2ec
35 changed files with 30124 additions and 1209 deletions

View File

@@ -8,19 +8,21 @@ ColumnLayout
readonly property int fieldM: 235
readonly property int fieldS: 110
readonly property bool valid: city.acceptableInput && email.acceptableInput && firstname.acceptableInput && lastname.acceptableInput && mobile.acceptableInput && phone.acceptableInput && postcode.acceptableInput && formofaddress.acceptableInput && title.acceptableInput
readonly property var value: QtObject {
readonly property string city: (city.editText ? city.editText : city.currentText) ?? ""
readonly property string email: email.text
readonly property string firstname: firstname.text
readonly property string formofaddress: formofaddress.currentText ?? ""
readonly property string houseno: houseno.text ?? ""
readonly property string lastname: lastname.text
readonly property string mobile: mobile.text
readonly property string phone: phone.text
readonly property string postcode: (postcode.editText ? postcode.editText : postcode.currentText) ?? ""
readonly property string street: (street.editText ? street.editText : street.currentText) ?? ""
readonly property string title: title.currentText
}
readonly property var value: QtObject
{
readonly property string city: (city.editText ? city.editText : city.currentText) ?? ""
readonly property string email: email.text
readonly property string firstname: firstname.text
readonly property string formofaddress: formofaddress.text
readonly property string houseno: houseno.text
readonly property string lastname: lastname.text
readonly property string mobile: mobile.text
readonly property string phone: phone.text
readonly property string postcode: (postcode.editText ? postcode.editText : postcode.currentText) ?? ""
readonly property string street: street.text
readonly property string title: title.currentText
readonly property string country: (country.editText ? country.editText : country.currentText) ?? ""
}
spacing: Dimensions.l
@@ -41,6 +43,7 @@ ColumnLayout
label: qsTr("Anrede")
ComboBox {
// property string name: "title"
id: title
implicitWidth: fieldM
@@ -60,11 +63,14 @@ ColumnLayout
}
}
}
Field {
Field
{
label: qsTr("Vorname")
mandatory: true
TextField {
TextField
{
// property string name: "firstname"
id: firstname
implicitWidth: fieldM
@@ -79,6 +85,7 @@ ColumnLayout
mandatory: true
TextField {
// property string name: "lastname"
id: lastname
implicitWidth: fieldM
@@ -92,39 +99,45 @@ ColumnLayout
RowLayout {
spacing: Dimensions.m
Field {
id: street
Field
{
label: qsTr("Straße")
mandatory: true
TextField {
TextField
{
// property string name: "street"
id: street
implicitWidth: fieldM
placeholderText: qsTr("Musterstraße")
validator: NotEmptyValidator {
}
}
}
Field {
id: houseno
mandatory: true
Field
{
mandatory: true
label: qsTr("Hausnummer")
TextField {
TextField
{
// property string name: "houseno"
id: houseno
implicitWidth: fieldS
placeholderText: qsTr("1a")
validator: NotEmptyValidator {
}
}
}
Field {
Field
{
label: qsTr("PLZ")
mandatory: true
ComboBox {
ComboBox
{
// property string name: "postcode"
id: postcode
currentIndex: -1
@@ -139,11 +152,14 @@ ColumnLayout
validator: NotEmptyValidator {}
}
}
Field {
Field
{
label: qsTr("Ort")
mandatory: true
ComboBox {
ComboBox
{
// property string name: "city"
id: city
currentIndex: -1
@@ -156,6 +172,22 @@ ColumnLayout
}
}
}
Field
{
label: qsTr("Land")
mandatory: true
ComboBox
{
// property string name: "country"
id: country
currentIndex: 37
editable: true
implicitWidth: fieldM
model: address_model
textRole: "country"
}
}
}
IconLabel {
color: Colors.foreground
@@ -174,6 +206,7 @@ ColumnLayout
label: qsTr("Telefonnummer")
TextField {
// property string name: "phone"
id: phone
implicitWidth: fieldM
@@ -183,10 +216,13 @@ ColumnLayout
}
}
}
Field {
Field
{
label: qsTr("Mobil")
TextField {
TextField
{
// property string name: "mobile"
id: mobile
implicitWidth: fieldM
@@ -196,10 +232,13 @@ ColumnLayout
}
}
}
Field {
Field
{
label: qsTr("E-Mail Adresse")
TextField {
TextField
{
// property string name: "email"
id: email
implicitWidth: fieldM
@@ -209,10 +248,13 @@ ColumnLayout
}
}
}
Field {
Field
{
label: qsTr("Briefanrede")
TextField {
TextField
{
// property string name: "formofaddress"
id: formofaddress
implicitWidth: fieldM