import QtQuick import QtQuick.Controls import QtQuick.Layouts GridLayout { id: personalData columns: 2 Label { text: qsTr("Anrede") Layout.alignment: Qt.AlignRight } ComboBox { 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 + "," } Label { text: qsTr("Vorname") Layout.alignment: Qt.AlignRight } TextField { id: firstname Layout.fillWidth: true placeholderText: "Pflichtfeld" placeholderTextColor: "red" } Label { text: qsTr("Nachname") Layout.alignment: Qt.AlignRight } TextField { id: lastname Layout.fillWidth: true placeholderText: "Pflichtfeld" placeholderTextColor: "red" } Label { text: qsTr("Straße") Layout.alignment: Qt.AlignRight } TextField { id: street Layout.fillWidth: true } Label { text: qsTr("PLZ") Layout.alignment: Qt.AlignRight } RowLayout { ComboBox { id: postcode Layout.fillWidth: true } Label { text: qsTr("Ort") Layout.alignment: Qt.AlignRight } ComboBox { id: city Layout.fillWidth: true } } Label { text: qsTr("Telefonnummer") Layout.alignment: Qt.AlignRight } TextField { id: phonenumber Layout.fillWidth: true } Label { text: qsTr("E-Mail") Layout.alignment: Qt.AlignRight } TextField { id: email Layout.fillWidth: true } Label { text: qsTr("Familienstand") Layout.alignment: Qt.AlignRight visible: radio.children[1].checked } ComboBox { id: maritalstatus Layout.fillWidth: true editable: false model: [qsTr("ledig"), qsTr("verheiratet"), qsTr("verwitwet"), qsTr("geschieden")] visible: radio.children[1].checked } Label { text: qsTr("Jobbeschreibung") Layout.alignment: Qt.AlignRight visible: radio.children[1].checked } TextField { id: jobdescription Layout.fillWidth: true visible: radio.children[1].checked } Label { text: qsTr("Arbeitsbeginn") Layout.alignment: Qt.AlignRight visible: radio.children[1].checked } TextField { id: workstart Layout.fillWidth: true visible: radio.children[1].checked } Label { text: qsTr("Bei Befristung Ende") Layout.alignment: Qt.AlignRight visible: radio.children[1].checked } TextField { id: workend Layout.fillWidth: true visible: radio.children[1].checked } Label { text: qsTr("Arbeitszeiten") Layout.alignment: Qt.AlignRight visible: radio.children[1].checked } TextField { id: timetowork Layout.fillWidth: true visible: radio.children[1].checked } Label { text: qsTr("Briefanrede") Layout.alignment: Qt.AlignRight } TextField { id: briefAnrede Layout.fillWidth: true } Item { Layout.fillHeight: true Layout.columnSpan: 2 } }