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(),
|
||||
|
||||
Reference in New Issue
Block a user