90 lines
1.8 KiB
QML
90 lines
1.8 KiB
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import QtQuick.Controls
|
|
|
|
GridLayout
|
|
{
|
|
columns: 2
|
|
|
|
CheckBox
|
|
{
|
|
id: contactperson
|
|
text: qsTr("Ansprechpartner")
|
|
Layout.columnSpan: 2
|
|
onCheckStateChanged:
|
|
{
|
|
title.enabled = contactperson.checked
|
|
firstname.enabled = contactperson.checked
|
|
lastname.enabled = contactperson.checked
|
|
phonenumber.enabled = contactperson.checked
|
|
posizion.enabled = contactperson.checked
|
|
}
|
|
}
|
|
Label
|
|
{
|
|
text: qsTr("Anrede")
|
|
Layout.alignment: Qt.AlignRight
|
|
}
|
|
ComboBox
|
|
{
|
|
id: title
|
|
model: [qsTr("Herr"),qsTr("Frau")]
|
|
Layout.fillWidth: true
|
|
enabled: false
|
|
}
|
|
Label
|
|
{
|
|
text: qsTr("Vorname")
|
|
Layout.alignment: Qt.AlignRight
|
|
}
|
|
TextField
|
|
{
|
|
id: firstname
|
|
Layout.fillWidth: true
|
|
placeholderText: "Pflichtfeld"
|
|
placeholderTextColor: "red"
|
|
enabled: false
|
|
}
|
|
Label
|
|
{
|
|
text: qsTr("Nachname")
|
|
Layout.alignment: Qt.AlignRight
|
|
}
|
|
TextField
|
|
{
|
|
id: lastname
|
|
Layout.fillWidth: true
|
|
placeholderText: "Pflichtfeld"
|
|
placeholderTextColor: "red"
|
|
enabled: false
|
|
}
|
|
Label
|
|
{
|
|
text: qsTr("Telefonnummer")
|
|
Layout.alignment: Qt.AlignRight
|
|
}
|
|
TextField
|
|
{
|
|
id: phonenumber
|
|
Layout.fillWidth: true
|
|
placeholderText: "Pflichtfeld"
|
|
placeholderTextColor: "red"
|
|
enabled: false
|
|
}
|
|
Label
|
|
{
|
|
text: qsTr("Position")
|
|
Layout.alignment: Qt.AlignRight
|
|
}
|
|
TextField
|
|
{
|
|
id: posizion
|
|
Layout.fillWidth: true
|
|
placeholderText: "Pflichtfeld"
|
|
placeholderTextColor: "red"
|
|
enabled: false
|
|
}
|
|
|
|
}
|
|
|