diff --git a/Gui/CustomersTable.qml b/Gui/CustomersTable.qml index b88dafd..be8c54b 100644 --- a/Gui/CustomersTable.qml +++ b/Gui/CustomersTable.qml @@ -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 diff --git a/Gui/main.qml b/Gui/main.qml index 4b30650..404cf37 100644 --- a/Gui/main.qml +++ b/Gui/main.qml @@ -21,7 +21,6 @@ ApplicationWindow TopBar { - id:topBar visible: bad_config || !db_con ? false: true }