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

View File

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

View File

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