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