New employee to object as combobox
This commit is contained in:
@@ -29,7 +29,7 @@ ApplicationWindow
|
||||
text: qsTr("Eingesetzter Mitarbeiter")
|
||||
Layout.alignment: Qt.AlignRight
|
||||
}
|
||||
TextField
|
||||
ComboBox
|
||||
{
|
||||
id: assignee
|
||||
Layout.fillWidth: true
|
||||
@@ -103,10 +103,10 @@ ApplicationWindow
|
||||
text: qsTr("Hinzufügen")
|
||||
onClicked:
|
||||
{
|
||||
if (assignee.text.trim() !== "" && duration.text.trim() !== "" && wage.text.trim() !== "" && cleanDays.text.trim() !== "" && tasks.text.trim() !== "" && output.text.trim() !== "")
|
||||
if (duration.text.trim() !== "" && wage.text.trim() !== "" && cleanDays.text.trim() !== "" && tasks.text.trim() !== "" && output.text.trim() !== "")
|
||||
{
|
||||
var ne = {
|
||||
"assignee": assignee.text.trim(),
|
||||
"assignee": assignee.currentText,
|
||||
"duration": duration.text.trim(),
|
||||
"wage": wage.text.trim(),
|
||||
"cleandays": cleanDays.text.trim(),
|
||||
|
||||
@@ -18,7 +18,8 @@ GridLayout
|
||||
Layout.fillWidth: true
|
||||
editable: false
|
||||
model: [qsTr("Herr"), qsTr("Frau")]
|
||||
onCurrentTextChanged: briefAnrede.text = title.currentText === "Herr"? "Sehr geehrter " + title.currentText + ",": "Sehr geehrte " + title.currentText + ","
|
||||
onCurrentTextChanged: briefAnrede.text = title.currentText === "Herr"? "Sehr geehrter " +
|
||||
title.currentText: "Sehr geehrte " + title.currentText
|
||||
}
|
||||
Label
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user