merging solved

This commit is contained in:
2025-01-23 16:29:07 +01:00
5 changed files with 91 additions and 28 deletions

View File

@@ -14,13 +14,27 @@ GridLayout
}
ComboBox
{
property string name: "title"
id: title
Layout.fillWidth: true
editable: false
model: [qsTr("Herr"), qsTr("Frau")]
onCurrentTextChanged: briefAnrede.text = title.currentText === "Herr"? "Sehr geehrter " +
title.currentText: "Sehr geehrte " + title.currentText
Layout.columnSpan: 3
model: [qsTr("Keine Angabe"), qsTr("Herr"), qsTr("Frau")]
onCurrentTextChanged:
{
switch (title.currentIndex)
{
case 1:
briefAnrede.text = "Sehr geehrter Herr "
break
case 2:
briefAnrede.text = "Sehr geehrte Frau "
break
default:
briefAnrede.text = "Guten Tag "
}
}
}
Label
{
@@ -29,6 +43,7 @@ GridLayout
}
TextField
{
property string name: "firstname"
id: firstname
Layout.fillWidth: true
placeholderText: "Pflichtfeld"
@@ -43,6 +58,7 @@ GridLayout
}
TextField
{
property string name: "lastname"
id: lastname
Layout.fillWidth: true
placeholderText: "Pflichtfeld"
@@ -57,6 +73,7 @@ GridLayout
}
TextField
{
property string name: "street"
id: street
Layout.fillWidth: true
placeholderTextColor: "red"
@@ -81,8 +98,12 @@ GridLayout
Layout.alignment: Qt.AlignRight
}
ComboBox
{
property string name: "postcode"
id: postcode
Layout.fillWidth: true
editable: true
@@ -99,7 +120,6 @@ GridLayout
{
regularExpression: /([0-9]{1,5})/
}
}
@@ -111,6 +131,7 @@ GridLayout
}
ComboBox
{
property string name: "city"
id: city
Layout.fillWidth: true
editable: true
@@ -131,6 +152,7 @@ GridLayout
}
TextField
{
property string name: "phone"
id: phonenumber
Layout.fillWidth: true
placeholderTextColor: "red"
@@ -143,6 +165,7 @@ GridLayout
}
TextField
{
property string name: "mobile"
id: cellphone
Layout.fillWidth: true
placeholderTextColor: "red"
@@ -155,6 +178,7 @@ GridLayout
}
TextField
{
property string name: "email"
id: email
Layout.fillWidth: true
placeholderTextColor: "red"
@@ -168,6 +192,7 @@ GridLayout
}
ComboBox
{
property string name: "maritalstatus"
id: maritalstatus
Layout.fillWidth: true
editable: false
@@ -183,6 +208,7 @@ GridLayout
}
TextField
{
property string name: "jobdesc"
id: jobdescription
Layout.fillWidth: true
visible: radio.children[1].checked
@@ -197,6 +223,7 @@ GridLayout
}
TextField
{
property string name: "workstart"
id: workstart
Layout.fillWidth: true
visible: radio.children[1].checked
@@ -211,6 +238,7 @@ GridLayout
}
TextField
{
property string name: "workend"
id: workend
Layout.fillWidth: true
visible: radio.children[1].checked
@@ -225,6 +253,7 @@ GridLayout
}
TextField
{
property string name: "timework"
id: timetowork
Layout.fillWidth: true
visible: radio.children[1].checked
@@ -238,6 +267,7 @@ GridLayout
}
TextField
{
property string name: "formofaddress"
id: briefAnrede
Layout.fillWidth: true
placeholderTextColor: "red"