From 767200096f33d147dd717178637dbc6e3fcb837d7ac0e8271feffd6a262e58a2 Mon Sep 17 00:00:00 2001 From: linuxero Date: Mon, 10 Mar 2025 15:54:33 +0100 Subject: [PATCH] Make spinboxes editable and correct contact person's position --- Gui/AddNewObject.qml | 6 +++--- Gui/ObjectAddOnContactPerson.qml | 28 ++++++++++++++-------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Gui/AddNewObject.qml b/Gui/AddNewObject.qml index 1641e18..7ad3205 100644 --- a/Gui/AddNewObject.qml +++ b/Gui/AddNewObject.qml @@ -114,6 +114,7 @@ GridLayout from: 1 to: 100 value: 1 + editable: true } Label @@ -130,6 +131,7 @@ GridLayout from: 1 to: 100 value: 1 + editable: true } // New grid row @@ -185,13 +187,11 @@ GridLayout text: qsTr("Besonderheiten") Layout.alignment: Qt.AlignRight } - ComboBox + TextField { property string name: "remarks" id: remarks Layout.fillWidth: true - editable: false - textRole: "display" } //// New grid row diff --git a/Gui/ObjectAddOnContactPerson.qml b/Gui/ObjectAddOnContactPerson.qml index 1ffdb82..cc389a1 100644 --- a/Gui/ObjectAddOnContactPerson.qml +++ b/Gui/ObjectAddOnContactPerson.qml @@ -9,7 +9,7 @@ GridLayout Layout.fillWidth: true Label { - text: qsTr("Kontaktdaten") + text: qsTr("Position") Layout.alignment: Qt.AlignRight | Qt.AlignTop } @@ -19,7 +19,7 @@ GridLayout id: contacttype Layout.fillWidth: true editable: false - model: [qsTr("Beirat"), qsTr("Hausmeister")] + model: [qsTr("Beirat"), qsTr("Hausmeister"), qsTr("Hausbewohner"), qsTr("Sonstiges")] } Label @@ -88,18 +88,18 @@ GridLayout } - Label - { - text: qsTr("Position") - Layout.alignment: Qt.AlignRight - } - TextField - { - id: posizion - Layout.fillWidth: true - placeholderText: "Pflichtfeld" - placeholderTextColor: "red" - } + // Label + // { + // text: qsTr("Position") + // Layout.alignment: Qt.AlignRight + // } + // TextField + // { + // id: posizion + // Layout.fillWidth: true + // placeholderText: "Pflichtfeld" + // placeholderTextColor: "red" + // } RowLayout {