This commit is contained in:
2025-03-21 15:17:07 +01:00
parent 34bd7409df
commit a7a1cd4913
2 changed files with 20 additions and 12 deletions

View File

@@ -4,7 +4,8 @@ import QtQuick.Controls
import Qt.labs.qmlmodels
ColumnLayout {
function viewCriterion(criterion) {
function viewCriterion(criterion)
{
business_model.viewCriterion(criterion.text);
}
@@ -12,12 +13,16 @@ ColumnLayout {
Component.onCompleted: customersStack.pop()
RowLayout {
RowLayout
{
Layout.fillWidth: true
Layout.horizontalStretchFactor: 1
spacing: Dimensions.l
// Layout.horizontalStretchFactor: 1
// spacing: Dimensions.l
SearchBar
{
SearchBar {
}
QuickFilter {
@@ -53,20 +58,22 @@ ColumnLayout {
}
}
}
Button {
Button
{
id: addCustomer
Layout.alignment: Qt.AlignRight
icon.source: "qrc:/images/PlusCircle.svg"
text: qsTr("Kunde Hinzufügen")
onClicked: appLoader.source = "AddCustomer.qml"
}
}
ColumnLayout {
ColumnLayout
{
clip: true
HorizontalHeaderView {
HorizontalHeaderView
{
id: horizontalHeader
Layout.fillWidth: true
@@ -74,14 +81,16 @@ ColumnLayout {
movableColumns: true //@disable-check M16
syncView: customerTable
delegate: Rectangle {
delegate: Rectangle
{
Layout.fillWidth: true
border.color: addCustomer.palette.base
color: addCustomer.palette.alternateBase
implicitHeight: 40
implicitWidth: 1
Text {
Text
{
color: addCustomer.palette.text
elide: Text.ElideRight
height: parent.height

View File

@@ -21,7 +21,6 @@ ApplicationWindow
TopBar
{
id:topBar
visible: bad_config || !db_con ? false: true
}