Compare commits

..

2 Commits

Author SHA256 Message Date
1cb250e3d1 Merge branch 'schnacke'
Scrollview in all Forms, Debugged Error in AddEmployee.qml
2025-05-23 14:17:58 +02:00
bcc8e3a015 Added Scrollview in all forms, debugged error in AddEmployee.qml 2025-05-23 14:17:35 +02:00
3 changed files with 241 additions and 223 deletions

View File

@@ -1,13 +1,14 @@
import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import TeroStyle
import Js
ColumnLayout {
ScrollView
{
ColumnLayout {
anchors.fill: parent
spacing: Dimensions.l
Component.onCompleted: {
employee_model.addedNewEmployee.connect(successful => {
if (successful)
@@ -47,4 +48,5 @@ ColumnLayout {
}
}
}
}
}

View File

@@ -2,9 +2,9 @@ import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import Js
ColumnLayout {
id: colPar
ScrollView
{
function checkFields() {
if (!personalData.checkPersonalField())
saveBtn.enabled = false;
@@ -19,6 +19,10 @@ ColumnLayout {
console.log('failedtoadd');
}
}
ColumnLayout {
id: colPar
Layout.fillHeight: true
Layout.fillWidth: true
@@ -40,6 +44,9 @@ ColumnLayout {
Layout.fillWidth: true
spacing: Dimensions.l
Frame {
Layout.alignment: Qt.AlignTop
Layout.fillWidth: true
@@ -98,4 +105,5 @@ ColumnLayout {
}
}
}
}
}

View File

@@ -4,12 +4,18 @@ import QtQuick.Controls
import QtQuick.Dialogs
import Js
ColumnLayout
ScrollView
{
id: scroll
width: parent.width
height: parent.height
ColumnLayout
{
height: Screen.desktopAvailableHeight
width: scroll.width
property var new_object: null
//property alias checkAddContact: checkAddContact
Layout.fillWidth: true
Layout.fillHeight: true
spacing: 15
Label
{
@@ -138,6 +144,8 @@ ColumnLayout
// }
// }
}
function checkFields()
{
if(checkAddObjectContact.checked)