Scroll and wage fix - Employee

This commit is contained in:
2025-05-23 14:11:06 +02:00
parent e49622136c
commit 8ba6920a2b
3 changed files with 84 additions and 71 deletions

View File

@@ -2,8 +2,12 @@ import QtQuick
import QtQuick.Controls import QtQuick.Controls
import QtQuick.Layouts import QtQuick.Layouts
import Js import Js
ColumnLayout {
id: colPar ScrollView
{
id: scroll
width: parent.width
height: parent.height
function checkFields() { function checkFields() {
if (!personalData.checkPersonalField()) if (!personalData.checkPersonalField())
@@ -20,9 +24,13 @@ ColumnLayout {
} }
} }
ColumnLayout {
id: colPar
height: Screen.desktopAvailableHeight
width: scroll.width
Layout.fillHeight: true Layout.fillHeight: true
Layout.fillWidth: true Layout.fillWidth: true
anchors.fill: parent
implicitWidth: parent.width implicitWidth: parent.width
Component.onCompleted: { Component.onCompleted: {
@@ -34,7 +42,7 @@ ColumnLayout {
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
font.pixelSize: 35 font.pixelSize: 35
text: qsTr("Mitarbeiter / Bewerber hinzufügen") text: qsTr("Mitarbeiter hinzufügen")
} }
RowLayout { RowLayout {
Layout.fillWidth: true Layout.fillWidth: true
@@ -99,3 +107,4 @@ ColumnLayout {
} }
} }
} }
}

View File

@@ -292,6 +292,10 @@ GridLayout {
Layout.fillWidth: true Layout.fillWidth: true
placeholderTextColor: "red" placeholderTextColor: "red"
validator: RegularExpressionValidator {
regularExpression: /([0-9]{1,3})/
}
onTextChanged: checkFields() onTextChanged: checkFields()
} }
Label { Label {

View File

@@ -27,7 +27,7 @@ ColumnLayout {
ListElement { ListElement {
name: "Mitarbeiter" name: "Mitarbeiter"
selected: false selected: false
text: qsTr("Kunde") text: qsTr("Mitarbeiter")
} }
ListElement { ListElement {
name: "Erledigt" name: "Erledigt"